ubuntu nginx报错 nginx.service - Custom Nginx Service Loaded: loaded (/etc/systemd/system/nginx.s

ubuntu nginx 报错 ,具体报错代码如下:

nginx.service - Custom Nginx Service
Loaded: loaded (/etc/systemd/system/nginx.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2024-08-29 10:31:48 CST; 2s ago
Process: 176083 ExecStart=/home/wufengshan/docker/nginx-1.18.0 -c /home/wufengshan/docker/nginx-1.18.0/conf/nginx.conf (code=exit>
Main PID: 176083 (code=exited, status=203/EXEC)

解决方法:

sudo nginx -c /home/wufengshan/docker/nginx-1.18.0/conf/nginx.conf

猜你喜欢

转载自blog.csdn.net/qq_46123200/article/details/141675007