1.找到nginx的 pid #显示内容有pid的字段,找到pid的数字 netstat -ntlp 2.存储 pid 到 /run/nginx.pid cd /run vim nginx.pid 3.重启nginx nginx -s reload