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