解决 重启nginx: [alert] kill(20367, 1) failed (3: No such process)

[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

root@pointergh-vm:/usr/local/nginx/sbin# # find / -name nginx.conf
root@pointergh-vm:/usr/local/nginx/sbin#  /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
root@pointergh-vm:/usr/local/nginx/sbin#  nginx -s reload    

Command 'nginx' not found, but can be installed with:

apt install nginx-core    # version 1.18.0-0ubuntu1.2, or
apt install nginx-extras  # version 1.18.0-0ubuntu1.2
apt install nginx-full    # version 1.18.0-0ubuntu1.2
apt install nginx-light   # version 1.18.0-0ubuntu1.2

root@pointergh-vm:/usr/local/nginx/sbin#  sudo ./nginx -s reload

你可能感兴趣的:(操作系统,nginx,服务器)