解决方法

  1. less /etc/nginx/nginx.conf
  2. 找到一行pid xxxxx/nginx.pid
  3. 假设报错信息为找不到/run/nginx.pid
  4. mv xxxx/nginx.pid /run/nginx.pid
  5. systemctl restart nginx