nginx:WSL启动nginx报open() "/run/nginx.pid" failed

/ 默认分类 / 没有评论 / 1995浏览

问题:WSL启动nginx报错:

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

解决方案:

sudo service nginx restart
sudo nginx -s reload -t
sudo nginx -s reload