[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 进程记录和当前不符的更多相关文章

  1. 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) ...

  2. nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”

    在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in " ...

  3. /application/nginx/sbin/nginx -h

    [root@web03 ~]# /application/nginx/sbin/nginx -h nginx version: nginx/1.6.3Usage: nginx [-?hvVtq] [- ...

  4. 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, ...

  5. 【防坑指南】nginx重启后出现[error] open() “/usr/local/var/run/nginx/nginx.pid” failed

    重新启动nginx后,出现报错,原因就是下没有nginx文件夹或没有nginx.pid文件,为什么会没有呢? 原因就是每次重新启动,系统都会自动删除文件,所以解决方式就是更改pid文件存储的位置, 打 ...

  6. 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

    查看依赖库:

  7. 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;  

  8. 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

    重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr ...

  9. 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 ...

随机推荐

  1. 二叉排序树及其C代码

    1.二叉排序树的定义   二叉排序树(Binary Sort Tree)又称二叉查找(搜索)树(Binary Search Tree).其定义为:二叉排序树或者是空树, 或者是满足例如以下性质的二叉树 ...

  2. 【亲测好用!】shell批量采集百度下拉框关键词

    [亲测好用!]shell批量采集百度下拉框关键词 SEO工具  方法  11个月前 (11-18)  2153浏览 3条评论 百度已收录 一直想写一篇用shell采集百度下拉框关键词的教程,个人感觉用 ...

  3. 效果非常好的 Jquery弹出层插件 jQuery Sweet alert

    介绍款交互性非常不错的jquery弹出层插件,支持消息提示.错误提示.确认框提示等. 交互式体验感非常不错,比如咱们现在体验非常不错的微信支付.支付宝等完成后的效果. 不过本插件至少支持IE9+ Jq ...

  4. CSS 命名规范总结

    CSS 命名规范总结 BEM 命名给 CSS 以及 html 提供清晰结构,命名空间提供更多信息,模块化提高代码的重用,以达到 CSS 命名语义化.可重用性高.后期维护容易.加载渲染快的要求. 首先, ...

  5. 在windows中使用Navicat连接Linux虚拟机中的mysql数据库

    今天想用navicat远程连接虚拟机中的MySQL数据库,一直连不上,在网上搜索了一下,发现原因是MySQL对远程用户登陆的授权问题.这里说一下我的解决方法.(本人小白) 首先,我用navicat去远 ...

  6. python 将base64字符串还原成图片保存

    import os,base64 strs='''/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCI ...

  7. 结构体内重载小于号< 及构造函数

    struct Node { int d, e; bool operator < (const Node x) const { return x.d < d; } Node(int d, i ...

  8. Linux下C语言的调试

    调试是每个程序员都会面临的问题. 如何提高程序员的调试效率, 更好更快地定位程序中的问题从而加快程序开发的进度, 是大家共同面对的问题. 可能Windows用户顺口就会说出:用VC呗 :-) , 它提 ...

  9. cocos2dx3.2升级Android5的坑

    虽然已经转到服务端,但是对客户端的事情,偶尔还看看.公司的游戏用的是cocos2dx 3.2的版本, 然而在Android 5 上却无法运行. 先是没有触摸事件. 在stackoverflow上看到, ...

  10. [systemd]Linux系统启动之systemd

    参照:https://wiki.debian.org/systemd 最近在添加板子应用程序自启动的时候,发现在rcN.d中的符号链接并没有用,文件系统为Debian Jessie 8, 后来从同事那 ...