前提
功能
常用选项
案例
# ss -lntup|grep 111
udp UNCONN 0 0 *:111 *:* users:(("rpcbind",968,6))
udp UNCONN 0 0 :::111 :::* users:(("rpcbind",968,9))
tcp LISTEN 0 128 :::111 :::* users:(("rpcbind",968,11))
tcp LISTEN 0 128 *:111 *:* users:(("rpcbind",968,8))
# lsof -i :111
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 968 rpc 6u IPv4 11275 0t0 UDP *:sunrpc
rpcbind 968 rpc 8u IPv4 11278 0t0 TCP *:sunrpc (LISTEN)
rpcbind 968 rpc 9u IPv6 11280 0t0 UDP *:sunrpc
rpcbind 968 rpc 11u IPv6 11283 0t0 TCP *:sunrpc (LISTEN)