若报错:
The program 'nginx' can be found in the following packages:
* nginx-core
* nginx-extras
* nginx-full
* nginx-light
Try: apt install <selected package>
使用绝对路径使用命令:
nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
ps -ef | grep nginx
然后杀掉进程