Liunx
ps aux | grep nginx # pid为master进程号 netstat -anp | grep ${pid}
macOS
# 和linux参数不一样 netstat -anvp tcp |grep ${pid} # 查看谁在使用端口号 lsof -i:8000
京公网安备 11010502049817号