zhwz 发表于 2019-2-15 15:40:07

Centos的网络配置命令和文件

# ss -tan  
State       Recv-Q Send-Q      Local Address:Port                     Peer Address:Port
  
LISTEN      0      128                     *:22                                  *:*
  
LISTEN      0      100             127.0.0.1:25                                  *:*
  
ESTAB       0      52             172.16.9.9:22                     172.16.7.211:54886
  
LISTEN      0      128                  :::80                                 :::*
  
LISTEN      0      128                  :::22                                 :::*
  
LISTEN      0      100                   ::1:25                                 :::*
  

  
# ss -tanl
  
State       Recv-Q Send-Q      Local Address:Port                     Peer Address:Port
  
LISTEN      0      128                     *:22                                  *:*
  
LISTEN      0      100             127.0.0.1:25                                  *:*
  
LISTEN      0      128                  :::80                                 :::*
  
LISTEN      0      128                  :::22                                 :::*
  
LISTEN      0      100                   ::1:25                                 :::*
  

  
# ss -tanlp
  
State       Recv-Q Send-Q      Local Address:Port                     Peer Address:Port
  
LISTEN      0      128                     *:22                                  *:*                   users:(("sshd",pid=1250,fd=3))
  
LISTEN      0      100             127.0.0.1:25                                  *:*                   users:(("master",pid=2365,fd=13))
  
LISTEN      0      128                  :::80                                 :::*                   users:(("httpd",pid=2824,fd=4),("httpd",pid=2823,fd=4),("httpd",pid=2822,fd=4),("httpd",pid=2821,fd=4))
  
LISTEN      0      128                  :::22                                 :::*                   users:(("sshd",pid=1250,fd=4))
  
LISTEN      0      100                   ::1:25


页: [1]
查看完整版本: Centos的网络配置命令和文件