/usr/local/nginx/sbin/nginx -s reload 失败原因pid 进程记录和当前不符
[root@a ~]# /usr/local/nginx/sbin/nginx -s reload;
nginx: [alert] kill(18834, 1) failed (3: No such process)
root 15808 0.0 0.0 51288 1488 ? Ss Oct22 0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nginx 15809 0.1 0.0 58200 7160 ? S Oct22 64:50 nginx: worker process
nginx 15810 0.2 0.0 58516 7444 ? S Oct22 92:46 nginx: worker process
nginx 15811 0.3 0.0 58492 7424 ? S Oct22 123:15 nginx: worker process
nginx 15812 0.5 0.0 58576 7724 ? S Oct22 216:41 nginx: worker process
nginx 15813 0.8 0.0 58332 7288 ? S Oct22 328:47 nginx: worker process
nginx 15814 1.9 0.0 61220 10324 ? S Oct22 706:14 nginx: worker process
nginx 15815 0.4 0.0 58332 7464 ? S Oct22 166:57 nginx: worker process
nginx 15816 2.0 0.0 58600 7788 ? S Oct22 754:07 nginx: worker process
[root@a ~]# ps -aux | grep nginx
echo 15808 > /usr/local/nginx/run/nginx.pid
/usr/local/nginx/sbin/nginx -s reload;
[root@a ~]# ps -aux | grep nginx
nginx 4912 0.3 0.0 58576 7032 ? S 11:22 0:00 nginx: worker process
nginx 4913 0.4 0.0 58576 7024 ? S 11:22 0:00 nginx: worker process
nginx 4914 1.1 0.0 58576 7012 ? S 11:22 0:00 nginx: worker process
nginx 4915 0.6 0.0 58576 7032 ? S 11:22 0:00 nginx: worker process
nginx 4916 0.7 0.0 58576 7012 ? S 11:22 0:00 nginx: worker process
nginx 4917 3.2 0.0 58576 7472 ? S 11:22 0:01 nginx: worker process
nginx 4918 1.7 0.0 58576 7068 ? S 11:22 0:00 nginx: worker process
nginx 4919 4.1 0.0 58920 7732 ? S 11:22 0:02 nginx: worker process
root 4973 0.0 0.0 112704 964 pts/6 S+ 11:23 0:00 grep --color=auto nginx
nginx 11471 0.1 0.0 328736 23616 ? S Sep18 119:20 php-fpm: pool www
nginx 11770 0.1 0.0 328452 24124 ? S Sep18 120:06 php-fpm: pool www
root 15808 0.0 0.0 52240 2556 ? Ss Oct22 0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@a ~]# ps -aux | grep nginx
/usr/local/nginx/sbin/nginx -s reload 失败原因pid 进程记录和当前不符的更多相关文章
- 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: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”
在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in " ...
- /application/nginx/sbin/nginx -h
[root@web03 ~]# /application/nginx/sbin/nginx -h nginx version: nginx/1.6.3Usage: nginx [-?hvVtq] [- ...
- nginx启动或者重启失败,报错nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
第一种方案: 1. 执行命令 :open /usr/local/etc/nginx 打开nginx安装目录 nginx安装目录默认位置有:(找到适合你的) /etc/nginx/nginx.conf, ...
- 【防坑指南】nginx重启后出现[error] open() “/usr/local/var/run/nginx/nginx.pid” failed
重新启动nginx后,出现报错,原因就是下没有nginx文件夹或没有nginx.pid文件,为什么会没有呢? 原因就是每次重新启动,系统都会自动删除文件,所以解决方式就是更改pid文件存储的位置, 打 ...
- nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
查看依赖库:
- nagios报错Error: No such CGI app - /usr/local/nagios/sbin/nagios/cgi-bin/status.cgi may not exist or is not executable by this process.
加上rewrite rewrite ^/nagios/cgi-bin/(.*)\.cgi /$.cgi break;
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr ...
- 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 ...
随机推荐
- U盘 格式化 ext3 ext4
[root@ok Desktop]# mkfs.ext3 /dev/sdc mke2fs 1.41.12 (17-May-2010) /dev/sdc is entire device, not ju ...
- 远程登录linux上的mysql数据库
UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1; 讲root账户,的HOST设置为%,允许所有公网IP访问. flush priv ...
- 不同classloader装载的类不能互相访问?
一,有两个术语,一个叫“定义类加载器”,一个叫“初始类加载器”. 比如有如下的类加载器结构: bootstrap ExtClassloader AppClassloader -自定 ...
- 删除节点removeChild()
http://www.imooc.com/code/1700 删除节点removeChild() removeChild() 方法从子节点列表中删除某个节点.如删除成功,此方法可返回被删除的节点,如失 ...
- cf 459c Pashmak and Buses
E - Pashmak and Buses Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I ...
- lua工具库penlight--04路径和目录
使用路径 程序不应该依赖于奇葩的系统,这样你的代码会难以阅读和移植.最糟糕的是硬编码的路径, windows和Unix的路径分隔符正好相反.最好使用path.join,它可以帮助你解决这个问题. pl ...
- 为什么对一些矩阵做PCA得到的矩阵少一行?
很多时候会出现把一个N*M的矩阵做pca(对M降维)之后却得到一个M*(M-1)矩阵这样的结果.之前都是数学推导得到这个结论,但是, 今天看到一个很形象的解释: Consider what PCA d ...
- Scala + Play + Sbt + Protractor = One Build
欢迎关注我的新博客地址:http://cuipengfei.me/ 我所在的项目的技术栈选用的是Play framework做后端API,前端用Angular JS. 因为用了Scala和Play,构 ...
- 数据库 Navicat_Premium_11.0.10 破解版下载安装
下载地址:http://www.liangchan.net/soft/download.asp?softid=4785&downid=8&id=4804 破解说明:安装之后不要立即启动 ...
- CSS3 实现厉害的文字和输入框组合效果
最近在忙着弄网站,学到了不少效果,这又是一个厉害的 <html> <head> <meta http-equiv="Content-Type" co ...