解决nginx: [error] invalid PID number "" in "/var/run/nginx/nginx.pid"

以下内容仅供参考:

打开你本机 ${nginx}/conf/,执行以下代码

[root@localhost sbin]# ./nginx -c /usr/local/nginx/conf/nginx.conf

指定 nginx 使用哪个配置文件

[root@localhost sbin]# ./nginx -s reload
[root@localhost sbin]# ./nginx -s start
启动成功
发布了9 篇原创文章 · 获赞 0 · 访问量 118

猜你喜欢

转载自blog.csdn.net/qq_43060561/article/details/104573365