当你执行sudo nginx -s reload时出现nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory),说明由于你操作不当,部分文件丢失
解决方法:
nginx -c /etc/nginx/nginx.conf (其中/etc/nginx/nginx.conf 是你的nginx.conf的文件路径)
然后在执行sudo nginx -s reload就可以了

相关文章:

  • 2021-09-16
  • 2021-08-13
  • 2021-04-26
  • 2021-11-15
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2021-10-10
  • 2021-05-11
相关资源
相似解决方案