centos7 安裝netstat命令工具


[root@node01 yum.repos.d]# yum install -y net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================
 Package              Arch              Version                               Repository          Size
=======================================================================================================
Installing:
 net-tools            x86_64            2.0-0.22.20131004git.el7              centos7            305 k

Transaction Summary
=======================================================================================================
Install  1 Package

Total download size: 305 k
Installed size: 917 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : net-tools-2.0-0.22.20131004git.el7.x86_64                                           1/1
  Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                           1/1

Installed:
  net-tools.x86_64 0:2.0-0.22.20131004git.el7

Complete!
[root@node01 yum.repos.d]# netstat -tulnp | grep 5432
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      1754/postgres
tcp6       0      0 ::1:5432                :::*                    LISTEN      1754/postgres

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM