root@hi3798mv100:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-08-10 18:51:24 CST; 15s ago
Docs: man:nginx(8)
Process: 11501 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Aug 10 18:51:24 hi3798mv100 systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 10 18:51:24 hi3798mv100 nginx[11501]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
Aug 10 18:51:24 hi3798mv100 nginx[11501]: 2023/08/10 18:51:24 [emerg] 11501#11501: open() "/var/log/nginx/mrdoc_access.log" failed (2: No such file or directory)
Aug 10 18:51:24 hi3798mv100 nginx[11501]: nginx: configuration file /etc/nginx/nginx.conf test failed
Aug 10 18:51:24 hi3798mv100 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Aug 10 18:51:24 hi3798mv100 systemd[1]: nginx.service: Failed with result 'exit-code'.
Aug 10 18:51:24 hi3798mv100 systemd[1]: Failed to start A high performance web server and a reverse proxy server.