nginx启动报错
[root@VM-24-8-centos ~]# systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@VM-24-8-centos ~]# systemctl status nginx -l
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-10-24 10:36:53 CST; 2min 43s ago
Process: 8246 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 8244 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
如何解决
mkdir -p /var/lib/nginx/tmp/
mkdir -p /var/log/nginx
systemctl restart nginx
标签:status,24,systemctl,code,vendor,service,nginx,preset
From: https://www.cnblogs.com/dingshaohua/p/16820761.html