Hi,
why I've this error at every reboot:
root@orangepiplus:~# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Mon 2017-05-08 11:59:28 CEST; 54s ago
Process: 1409 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
May 08 11:59:28 orangepiplus nginx[1409]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
May 08 11:59:28 orangepiplus nginx[1409]: 2017/05/08 11:59:28 [emerg] 1409#0: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
May 08 11:59:28 orangepiplus nginx[1409]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 08 11:59:28 orangepiplus systemd[1]: nginx.service: control process exited, code=exited status=1
May 08 11:59:28 orangepiplus systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 08 11:59:28 orangepiplus systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
How do you resolve it?
Thanks