[root@localhost/]# nginx -s reload
nginx: [alert] kill(189, 1) failed (3: No such process) 杀死189进程,可是并没有
//需要重新指定nginx.conf配置路径
[root@localhost /]# whereis ngnix
ngnix:[root@localhost/]#
[root@localhost /]# find / -name nginx
/usr/local/nginx/sbin/nginx
[root@localhost /]# find / -name nginx.conf
/usr/local/nginx/conf/nginx.conf
[root@localhost /]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@localhost/]# nginx -s reload //重启nginx
文章参考:https://www.cnblogs.com/li1204008978/p/7865244.html
网友评论