nginx: [error] invalid PID number ““ in “/usr/local/nginx/logs/nginx.pid“

1.场景 centos7x64 nginx-1.20.1.tar.gz 编译安装后 无法查询PID

nginx: error invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

2.解决一

2.1查询reload配置

复制代码
nginx -c /usr/local/nginx/conf/nginx.conf

然后再重载

./nginx -s reload

[root@localhost sbin]# ./nginx -s reload
[root@localhost sbin]# ps -aux | grep "nginx: master process"
root      34609  0.0  0.0  28284  1424 ?        Ss   17:29   0:00 nginx: master process ./nginx -c /usr/local/nginx/conf/nginx.conf
root      34790  0.0  0.0 112812   984 pts/0    S+   17:30   0:00 grep --color=auto nginx: master process
[root@localhost sbin]#
相关推荐
码云社区28 分钟前
Java家政服务系统源码:人员技能、服务范围与多商家业务落地
java·开发语言·家政服务·家政小程序·家政系统
FRing031 小时前
vue3干货总结3(defineOptions(Vue3.3)、defineModel(Vue3.4)、Pinia)
开发语言·前端·vue.js·vue3
Bczheng11 小时前
组件化服务端渲染模式SSR
前端
摇滚侠1 小时前
《On Java 中文版 基础卷》阅读笔记 接口 18
java·笔记·python
CoderYanger2 小时前
Java EE 进阶:9.MyBatis 操作数据库(进阶)(第八弹):MyBatis Generator
java·数据库·spring boot·spring·java-ee·tomcat·mybatis
whitelbwwww3 小时前
CUDA C++实战--中级
开发语言·前端·c++
张紫娃3 小时前
Chrome插件-Stylus(屏蔽博客广告)
前端·chrome·stylus
Yannik3 小时前
在 Apple Silicon Mac 上用 Jenkins + Fastlane 搭建 iOS CI:从自动打包到 MR 检查流水线的完整实践
前端
Nayana3 小时前
《Web 到 HarmonyOS》-- 打包:Vite 产物 → HAP / HAR / HSP
前端
inksci3 小时前
用飞帆做了个小网页
前端·javascript·css·html