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

  

posted @ 2020-11-18 17:38  orcl  阅读(7032)  评论(0编辑  收藏  举报