zoukankan      html  css  js  c++  java
  • 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

     -------------------------------------------------------------------------------------------------------------------------------------------

    欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.

    留下微信地址,方便大家和我联系

  • 相关阅读:
    git 更新代码
    jmeter 线程组之间传递动态变化的变量值
    MYSQL 使用存储过程批量更新表数据
    linux查看日志中特定字符串以及前后信息内容命令
    导出表结构 字段说明
    转 awk统计nginx每天访问最高的接口
    MySQL 同一字段匹配多个值
    Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2)
    转 Xshell ssh长时间连接不掉线设置
    Vs.net 常用命令行
  • 原文地址:https://www.cnblogs.com/iwangzheng/p/3720748.html
Copyright © 2011-2022 走看看