/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 ...
随机推荐
- jq使用自定义属性实现有title的tab切换
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8&quo ...
- FreeRTOS基础知识
前面一篇文章介绍了一些命名规范之类的基础知识,但是我觉得还缺少一定前言知识,就是裸机和操作系统有什么区别,为什么我们需要学freertos,因为招聘要求?那么为什么招聘网又会有这个要求呢?所以我们为什 ...
- Project Euler:Problem 34 Digit factorials
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are ...
- 使用模板方法模式简化JDBC操作
在使用JDBC时,会重复的写很多重复的代码,例如 Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; S ...
- RP2837 IN1-IN2 对应关系 2路DI
RP2837 IN1-IN2 对应关系: IN1 ARM-IO2 PA16 IN2 ARM-IO6 PA4 root@sama5d3-linux:~ echo 16 > /sy ...
- json datatable互转(真正能用的-原创)
网上有不少的转换类 可是不全 或者有错误 我现在贴一个 js 和C# 互转代码 希望能帮到需要的童鞋 首先C#转成 json /// <summary> /// DataT ...
- javascript 实现java中的Map
javascript实现java中的Map,代码是在国外的一个网站上看到的(http://stackoverflow.com/questions/368280/javascript-hashmap-e ...
- 为什么逻辑斯特回归(logistic regression)是线性模型
一个典型的logistic regression模型是: 这里明明用了非线性函数,那为什么logistic regression还是线性模型呢? 首先,这个函数不是f(y,x)=0的函数,判断一个模型 ...
- C++标准库之mutex
互斥锁有可重入.不可重入之分.C++标准库中用mutex表示不可重入的互斥锁,用recursive_mutex表示可重入的互斥锁.为这两个类增加根据时间来阻塞线程的能力,就又有了两个新的互斥锁:tim ...
- 【BZOJ】1676: [Usaco2005 Feb]Feed Accounting 饲料计算(差分)
http://www.lydsy.com/JudgeOnline/problem.php?id=1676 太水的一题了.. 差分直接搞. #include <cstdio> #includ ...