Linux 查看端口占用
Jihongchang(讨论 | 贡献)2023年2月2日 (四) 04:11的版本
root@raspberrypi:~# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
chfs 923 root 3u IPv6 20246 0t0 TCP *:http (LISTEN)
root@aade5ae73079:/var/www/html# netstat -apn|grep ":443"
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1/apache2