nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory),最简单的办法,杀死nginx进程,重启
解决办法如下
简单粗暴,杀死nginx进程,然后再启动nginx
sudo fuser -k 80/tcp #关闭占用80端口的程序(nginx默认端口80) cd /etc/init.d sudo nginx -c /etc/nginx/nginx.conf // 启动nginx
使用到43端口,https,
sudo fuser -k 43/tcp