Posted on 2021-01-20 | Post modified: 2021-01-20 | Words count in article: 51 查看端口是否有程序使用123netstat -anp | grep :80 # 所有与80有关的端口lsof -i:80 # 只看80端口 查看指定程序的进程123ps -ef | grep nginxps -C nginx -o pid # 查看pid