首页 > 技术文章 > nginx: [error] invalid PID number "" in ...

mobai920218 2019-06-13 15:23 原文

1、查看进程

ps -ef|grep nginx 

2、进入nginx安装目录sbin下,执行命令:

./nginx -t

 如下显示:

syntax is ok
test is successful

 

3、继续执行命令:

nginx -c /usr/local/webserver/nginx/conf/nginx.conf
nginx -s reload

推荐阅读