服务器重启之后,执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错

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

解决方法:

需要先执行

nginx -c /etc/nginx/nginx.conf

nginx.conf文件的路径可以从nginx -t的返回中找到。

nginx -s reload

如果以上没用,则直接kill调nginx里面的进程

例如:sudo kill -quit 28504

然后重启nginx

--------------------- 
作者:achang21 
来源:CSDN 
原文:https://blog.csdn.net/achang21/article/details/80039561 
版权声明:本文为博主原创文章,转载请附上博文链接!

Nginx报错:nginx: [error] invalid PID number ““ in “/run/nginx.pid“ 解决方法相关推荐

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

    在重启云主机(系统)之后,执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错 nginx: [error] invalid PID number "&q ...

  2. Nginx 负载均衡 - linux下nginx加载配置文件异常处理,提示invalid PID number in “/run/nginx.pid“问题解决

    执行 nginx -s reload 加载配置文件的时候报错了. 提示 nginx: [error] invalid PID number "" in "/run/ngi ...

  3. XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法

    XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法   大家好,我叫亓官劼(qí guān ...

  4. centos在yum install报错:Another app is currently holding the yum lock解决方法

    centos在yum install报错:Another app is currently holding the yum lock解决方法 参考文章: (1)centos在yum install报错 ...

  5. phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法

    phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法 参考文章: (1)php ...

  6. 控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法

    控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法 参考文章: (1)控制台报错:java.lang.C ...

  7. msfconsole启动失败并报错`not_after=‘: bignum too big to convert into `long‘的解决方法

    msfconsole启动失败并报错`not_after=': bignum too big to convert into `long'的解决方法 参考文章: (1)msfconsole启动失败并报错 ...

  8. SVN报错:can‘t open file db/txn-current-lock:permission denied 解决方法

    SVN报错:can't open file db/txn-current-lock:permission denied 解决方法 参考文章: (1)SVN报错:can't open file db/t ...

  9. mysql 1033_mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法(图)...

    这篇文章主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面 ...

最新文章

  1. Smart Paster...great tool to paste large strings into Vs.net
  2. MQTT数据接收流程之数据处理回调函数注册(基于LWIP/RDA8955平台)
  3. SharePoint 2013 Farm 安装指南——Least Privilege
  4. JavaWeb学习总结(1-53)
  5. 影视剪辑,PR剪辑软件两个转场教程
  6. package installer has been stopped怎么解决
  7. 一款可以帮助你处理文字、编写内容等办公软件-Word 2013 提供下载
  8. Android | 如何计算图片占用内存的大小
  9. linux怎么打开pak文件怎么打开,如何在 Linux 上安装并启用 Flatpak 支持?
  10. 专业专注、以客户为中心-是我们的服务理念
  11. XXL-JOB配置迁移到Nacos Could not resolve placeholder ‘xxl.job.accessToken’ in value “${xxl.job.accessToke
  12. 惠普电脑为什么打不开计算机刷题,如果无法打开HP笔记本计算机的无线开关该怎么办?惠普ProBook 4411s...
  13. Vscode babel 将es6转es5
  14. 放弃考研一头扎进春招,却磕得“头破血流”,这么拼值吗?
  15. 后台粉丝留言:投了不少简历,收到的面试邀请特别少,好不容易收到大厂面试邀请,却频繁出现问题,该如何解决
  16. CAS操作产生的ABA问题
  17. HPE DL388GEN9 /windows server 2012r2 重置管理员密码/忘记管理员密码
  18. 中国科学院大学2016年硕转博考试试题
  19. ubuntu设置服务器时区为东八区
  20. 哨兵数据下载对应的精密轨道文件

热门文章

  1. 如何用python实现视频字幕提取?
  2. JSP页面之“IE无法打开Internet 站点…… 已终止操作”问题
  3. 优酷视频HTML网址自动播放,优酷视频html5嵌入代码
  4. KeyError: ‘passes columns are not ALL present dataframe‘
  5. 寻找数组最大递增子序列
  6. 网络基础知识OTN/PTN
  7. python多个版本可不可以装在一起_可以在同一台计算机上安装多个Python版本。
  8. 2021年茶艺师(初级)考试及茶艺师(初级)免费试题
  9. DirectX 8 Graphics常见错误
  10. winrar密码瞬间清除_苹果手机的信号如何增强?这样设置瞬间信号满格