解决 nginx: [alert] kill(1022, 1) failed (3: No such process)
nginx: [alert] kill(1022, 1) failed (3: No such process)
[root@localhost ~]# ll /usr/local/nginx/sbin/nginx
-rwxr-xr-x. 1 root root 9120664 May 9 11:30 /usr/local/nginx/sbin/nginx
[root@localhost ~]# whereis nginx
nginx: /usr/bin/nginx /usr/local/nginx
[root@localhost ~]# find / -name nginx
find: ‘/run/user/1000/gvfs’: Permission denied
/etc/rc.d/init.d/nginx
/usr/bin/nginx
/usr/local/nginx
/usr/local/nginx/sbin/nginx
[root@localhost ~]# find / -name nginx.conf
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/local/nginx/conf/nginx.conf
[root@localhost ~]# /usr/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
-bash: /usr/sbin/nginx: No such file or directory
[root@localhost ~]# /usr/bin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@localhost ~]# vi /usr/local/nginx/conf/nginx.conf
[root@localhost ~]# nginx -s reload