nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
iwangzheng.com
tty:[0] jobs:[0] cwd:[/opt/nginx/conf]
12:45 [root@a02.cmsapi]$ /usr/local/nginx/sbin/nginx
-s reload
nginx: [error] invalid PID number "" in
"/usr/local/nginx/logs/nginx.pid"
tty:[0] jobs:[0] cwd:[/opt/nginx/conf]
12:45 [root@a02.cmsapi]$ ps -ef | grep nginx
root 646 1 0 May07 ? 00:00:00 nginx: master
process /opt/nginx/sbin/nginx -c /opt/nginx/conf/nginx.conf
www 647 646 0 May07 ? 00:00:00 nginx: worker
process
www 648 646 0 May07 ? 00:00:01 nginx: worker
process
www 650 646 0 May07 ? 00:00:00 nginx: worker
process
www 651 646 0 May07 ? 00:00:01 nginx: worker
process
www 652 646 0 May07 ? 00:00:00 nginx: worker
process
www 653 646 0 May07 ? 00:00:01 nginx: worker
process
www 655 646 0 May07 ? 00:00:01 nginx: worker
process
www 656 646 0 May07 ? 00:00:00 nginx: worker
process
root 7712 3274 0 12:45 pts/0 00:00:00 grep nginx
tty:[0] jobs:[0] cwd:[/opt/nginx/conf]
12:45 [root@a02.cmsapi]$ cat
/usr/local/nginx/logs/nginx.pid
tty:[0] jobs:[0] cwd:[/opt/nginx/conf]
12:46 [root@a02.cmsapi]$ echo 646 >
/usr/local/nginx/logs/nginx.pid
tty:[0] jobs:[0] cwd:[/opt/nginx/conf]
12:47 [root@a02.cmsapi]$ /usr/local/nginx/sbin/nginx
-s reload
-------------------------------------------------------------------------------------------------------------------------------------------
欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.
留下微信地址,方便大家和我联系

nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"的更多相关文章
- nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”
在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in " ...
- 解决 nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
使用/usr/local/nginx/sbin/nginx -s reload 重新读取配置文件出错 [root@localhost nginx]/usr/local/nginx/sbin/nginx ...
- nginx: [error] invalid PID number "" in "/usr/local/webserver/nginx/logs/nginx.pid" (原)
进入nginx文件下,例如 :/usr/local/nginx/sbin [root@iZ25f7emo7cZ /]# cd /usr/local/nginx/sbin 运行命令: [root@iZ2 ...
- invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
解决办法: $ sudo nginx -c /usr/local/etc/nginx/nginx.conf $ sudo nginx -s reload
- nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory) ...
- nginx重启报错:nginx: [error] invalid PID number "" in "/run/nginx.pid"
问题描述:执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错 nginx: [error] invalid PID number “” in “/run/ngin ...
- nginx: [error] invalid PID number "" in "/run/nginx.pid"
在重启云主机(系统)之后,执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错 nginx: [error] invalid PID number “” in “/ ...
- Centos7.5中Nginx报错:nginx: [error] invalid PID number "" in "/run/nginx.pid" 解决方法
服务器重启之后,执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错 nginx: [error] invalid PID number "" ...
- [nginx报错问题]reload时报错:nginx: [error] invalid PID number "" in ...
错误 第一次探索nginx,执行以下命令时: nginx -s reload 报出错误: nginx: [error] invalid PID number "" in ... * ...
随机推荐
- openvpn的介绍和搭建过程
本文摘自:http://www.linuxidc.com/Linux/2012-01/51702.htm,在这只是为了做个笔记使用
- Spring-涉及到的设计模式汇总
1. 简单工厂 又叫做静态工厂方法(StaticFactory Method)模式,但不属于23种GOF设计模式之一. 简单工厂模式的实质是由一个工厂类根据传入的参数,动态决定应该创建哪一个产品类. ...
- Java基础-静态代理与动态代理比较
JAVA的静态代理与动态代理比较 静态代理类: 由程序员创建或由特定工具自动生成源代码,再对其编译.在程序运行前,代理类的.class文件就已经存在了.动态代理类: 在程序运行时,运用反射机制动态创建 ...
- 似然估计中为什么要取对数以GMM为例
1.往往假设特征之间独立同分布,那么似然函数往往是连城形式,直接求骗到不好搞,根据log可以把连乘变为连加. 2.另外概率值是小数,多个小数相乘容易赵成浮点数下溢,去log变为连加可以避免这个问题. ...
- 【poj2546】 Circular Area
http://poj.org/problem?id=2546 (题目链接) 题意 求两圆的面积交 Solution 一道水题Wa死我了,肯定是昨晚搞太晚的缘故= =. 两圆的位置关系有5种,而这里要求 ...
- Vijos1889 天真的因数分解
描述 小岛: 什么叫做因数分解呢?doc : 就是将给定的正整数n, 分解为若干个素数连乘的形式.小岛: 那比如说 n=12 呢?doc : 那么就是 12 = 2 X 2 X 3 呀.小岛: 呜呜, ...
- C#获得系统打开的端口和状态
实际是通过c#编程方式调用了CMD命令行,然后调用netstat命令,然后将CMD命令的输出流转到了C#控制台程序上.也可以将结果输出到文件. using System; using System.C ...
- CF Gym 100685E Epic Fail of a Genie
传送门 E. Epic Fail of a Genie time limit per test 0.5 seconds memory limit per test 64 megabytes input ...
- resharper安装后,一不小心点错了(选择了object browser)
打开Resharper,选择Options,然后选择Tools中的External Sources,你的情况是选择了Navigation to Object Brower这一项了,换成第一个Defau ...
- strstr()
char * __cdecl strstr ( const char * str1, const char * str2 ) { char *cp = (char *) str1; char *s1, ...