5

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

 2 years ago
source link: https://www.lpime.cn/article/123
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

nginx

问题: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

本文由 Ryan 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: 2021/11/16 10:36


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK