nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)

error: nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)

solution:

sudo nginx -c /etc/nginx/nginx.conf   # 指定nginx配置文件
sudo nginx -s reload                  # 重新启动nginx


Read More: