nginx: [error] invalid PID number in /var/run/nginx.pid

蔚落 2023-02-11 07:22 114阅读 0赞
  1. [root@centos7 conf.d]# nginx -s reopen
  2. nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
  3. nginx: [error] invalid PID number "" in "/var/run/nginx.pid"

设置加载的配置文件即可:

  1. [root@centos7 conf.d]# nginx -c /etc/nginx/nginx.conf
  2. [root@centos7 conf.d]# nginx -s reload
  3. [root@centos7 conf.d]# nginx -v
  4. nginx version: nginx/1.18.0
  5. [root@centos7 conf.d]# nginx -s reopen
  6. [root@centos7 conf.d]#

发表评论

表情:
评论列表 (有 0 条评论,114人围观)

还没有评论,来说两句吧...

相关阅读