/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 ...
随机推荐
- 基于注解的ssh框架之spring配置文件
<?xml version="1.0" encoding="UTF-8"?> com.mysql.jdbc.Driver jdbc:mysql:// ...
- 0068 Git入门的第一节课
这是 猴子都懂的Git入门 的学习笔记 Git安装与配置 下载安装Git:http://git-scm.com/ 从开始菜单启动Git Bash $ git --version git version ...
- spring-boot 中application.properties的各种配置
###########################################################datasource connect mysql################# ...
- django中ModelForm save方法 以及快速生成空表单或包含数据的表单 包含错误信息
django中ModelForm学习系列一~save方法 Model代码 from django.db import models # Create your models here. class P ...
- CSS学习笔记(4)--选择器(w3school)
CSS3 选择器 在 CSS 中,选择器是一种模式,用于选择需要添加样式的元素. "CSS" 列指示该属性是在哪个 CSS 版本中定义的.(CSS1.CSS2 还是 CSS3.) ...
- 防止js拦截跳转请求的方法
不要直接使用window.open这个方法. 考虑下使用下面这个: openWindow: function(url){ var link = document.createElement('a'); ...
- Unix系统编程()发送信号kill
与shell的kill命令类似,一个进程能够使用kill系统调用向另一进程发送信号. 之所以选择kill作为术语,因为早期UNIX实现中大多数信号的默认行为是终止进程. #include <si ...
- mysql中创建用户和赋权限
mysql命令行用的不多,大部分使用工具类替代,所以这里记录下命令行模式下创建用户和赋予权限的命令,不用每次麻烦百度. 1. 创建oozie用户,%符号表示仅限于远程登录 create user 'o ...
- Elk使用笔记(坑)(2017-02-17更新)
Elk使用笔记(坑)(2017-02-17更新) 作者: admin 时间: 2016-12-07 分类: 工具,数据 主要记录使用过程终于到的一些坑和需要注意的地方,有些坑想不起来了,以后再完善补上 ...
- php7 扩展模块添加
php 扩展模块添加 1. 新增安装扩展模块的位置 [root@node_22 ~]# ls /usr/local/php7/lib/php/extensions/no-debug-non-zts ...