博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx在restart/reload时报invalid PID number错误
阅读量:7081 次
发布时间:2019-06-28

本文共 1465 字,大约阅读时间需要 4 分钟。

hot3.png

[root@test]# /etc/init.d/nginx restartnginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"[root@test]# ps aux|grep nginx root      1576  0.0  0.1  47880  4124 ?        Ss   08:53   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confwww       1581  0.0  0.6  68028 24588 ?        S    08:53   0:00 nginx: worker process                                          www       1582  0.0  0.6  67892 24392 ?        S    08:53   0:00 nginx: worker process                                          www       1583  0.0  0.6  67892 24392 ?        S    08:53   0:00 nginx: worker process                                          www       1584  0.0  0.6  68260 25084 ?        S    08:53   0:00 nginx: worker process                                          www       1585  0.0  0.6  67892 24392 ?        S    08:53   0:00 nginx: worker process                                          www       1586  0.0  0.6  68028 24688 ?        S    08:53   0:00 nginx: worker process                                          www       1587  0.0  0.6  68292 24868 ?        S    08:53   0:00 nginx: worker process                                          www       1588  0.0  0.6  68556 25152 ?        S    08:53   0:00 nginx: worker process  [root@test]# cat /usr/local/nginx/logs/nginx.pid[root@test]# echo 1576 > /usr/local/nginx/logs/nginx.pid[root@test]# /etc/init.d/nginx restart

 

转载于:https://my.oschina.net/HeAlvin/blog/906572

你可能感兴趣的文章
for与while循环、break跳出循环、continue结束本次循环、exit退出脚本
查看>>
mysql主从复制与读写分离
查看>>
四周第一次(2月26
查看>>
Python模块
查看>>
Windows2012、windows2016配置多用户登录
查看>>
VMware vSAN超融合虚拟化架构与NetApp FAS2620存储服务器虚拟化架构对比
查看>>
周期性任务计划
查看>>
Java多进程管道通信
查看>>
ipfs官方周刊,18期
查看>>
无线压力变送器的安装与标定方式!
查看>>
sever 2016部署web服务
查看>>
varnish使用yum安装及不同域名站点
查看>>
五分钟教会你分布式系统调用链监控
查看>>
VLAN与Trunk配置
查看>>
我的友情链接
查看>>
webservice调用报object is not an instance of declaring class错
查看>>
使用postfix发邮件被拒(UBE)的处理
查看>>
Shell学习NO.1——Shell的作用和使用技巧
查看>>
apache中 MaxClients 与MaxRequestsPerChild 并发数
查看>>
mfs+drbd+corosync+pacemaker+pcs+crmsh高可用分布式集群搭建
查看>>