[root@node6 ~]# ss -tnlp
State Recv-Q Send-Q Local Address:Port Peer Address:PortLISTEN 0 128 *:8000 *:* users:(("haproxy",11894,5))
LISTEN 0 128 192.168.2.119:10050 *:* users:(("zabbix_agentd",1716,4),("zabbix_agentd",1719,4),("zabbix_agentd",1720,4),("zabbix_agentd",1721,4),("zabbix_agentd",1722,4),("zabbix_agentd",1723,4))
LISTEN 0 80 *:3306 *:* users:(("mysqld",1654,16))
LISTEN 0 20 *:587 *:* users:(("exim",1681,6))
LISTEN 0 128 *:111 *:* users:(("rpcbind",1431,8))
LISTEN 0 128 *:80 *:* users:(("httpd",1731,3),("httpd",1755,3),("httpd",1756,3),("httpd",1757,3),("httpd",10439,3))
LISTEN 0 20 *:465 *:* users:(("exim",1681,5))
LISTEN 0 128 *:52113 *:* users:(("sshd",1499,3))
LISTEN 0 20 *:25 *:* users:(("exim",1681,4))
查看UDP监听的端口:
[root@node6 ~]# ss -unl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
UNCONN 0 0 *:514 *:*
UNCONN 0 0 *:647 *:*
UNCONN 0 0 *:60344 *:*
UNCONN 0 0 *:847 *:*
UNCONN 0 0 *:111 *:*
UNCONN 0 0 *:754 *:*