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

  

原文地址:https://www.cnblogs.com/orcl-2018/p/14001168.html