快捷导航

云服务器重启nginx后丢失nginx.pid问题处理

[复制链接]
查看: 1983|回复: 0
发表于 2023-6-29 15:50:10 | 显示全部楼层 |阅读模式
使用nginx -s reload的时候出现:[error]: invalid PID number “” in “/var/run/nginx.pid”网上找的的解释:nginx -s reload is only used to tell a running nginx process to reload its config. After a stop, you don’t have a running nginx process to send a signal to. Just run nginx (possibly with a -c /path/to/config/file)于是我用了这方法,也就是nginx -c /path/to/config/file)在我机器上是这样的nginx -c /usr/local/nginx/conf/nginx.conf
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

精彩推荐

尚云驿站

  • 投诉建议:350467567@qq.com
  • 软文投稿:350467567@qq.com
  • 友情链接:350467567@qq.com

云服务支持

精彩文章,快速检索

Copyright 尚云驿站  Powered by©  技术支持:飛    ( 闽ICP备2025116718号-15 )