命令的解释
Foreign Address
Address and port number of the remote end of the socket. Analogous to "Local Address".
netstat -tulnp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1904/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1750/cupsd
tcp 0 0 0.0.0.0:44567 0.0.0.0:* LISTEN 1713/rpc.statd
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 1965/zabbix_agentd
tcp 0 0 172.172.230.211:3306 0.0.0.0:* LISTEN 31849/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1576/rpcbind
tcp 0 0 172.172.230.211:46327 172.172.100.3:80 TIME_WAIT -
tcp 0 0 172.172.230.211:46329 172.172.100.3:80 TIME_WAIT -
tcp 0 52 172.172.230.211:22 172.172.173.222:50043 ESTABLISHED 6095/sshd
tcp 0 0 172.172.230.211:46326 172.172.100.3:80 TIME_WAIT -
tcp 0 0 172.172.230.211:5401 172.172.100.3:443 TIME_WAIT -
tcp 0 0 :::22 :::* LISTEN 1904/sshd
tcp 0 0 ::1:631 :::* LISTEN 1750/cupsd
tcp 0 0 :::11776 :::* LISTEN 1713/rpc.statd
tcp 0 0 :::10050 :::* LISTEN 1965/zabbix_agentd
tcp 0 0 :::111 :::* LISTEN 1576/rpcbind
我不明白的是为什么端口是80或443,含义是什么?不应该是随机端口吗?
80端口是默认的HTTP端口
443端口是默认的HTTPS端口