log
service nginx status × nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enable>
Active: failed (Result: exit-code) since Mon 2024-07-01 11:51:17 +03; 1h 5>
Docs: man:nginx(8)
Process: 648 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proces>
CPU: 13ms
Warning: some journal files were not opened due to insufficient permissions.
Site is not loading… But if I give bench --site l.new serve --port 8002
site is working. i have 2 sites.
Did you run “service nginx status” as root or with sudo privileges?
@volkswagner , thanks for reply. Tried… It is showing Failed… I dont know what next…
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enable>
Active: failed (Result: exit-code) since Mon 2024-07-01 11:51:17 +03; 21h >
Docs: man:nginx(8)
CPU: 13ms
Jul 01 11:51:16 vps-f5bcd7f3 systemd[1]: Starting nginx.service - A high perfor>
Jul 01 11:51:17 vps-f5bcd7f3 nginx[648]: 2024/07/01 11:51:17 [emerg] 648#648: u>
Jul 01 11:51:17 vps-f5bcd7f3 nginx[648]: nginx: configuration file /etc/nginx/n>
Jul 01 11:51:17 vps-f5bcd7f3 systemd[1]: nginx.service: Control process exited,>
Jul 01 11:51:17 vps-f5bcd7f3 systemd[1]: nginx.service: Failed with result 'exi>
Jul 01 11:51:17 vps-f5bcd7f3 systemd[1]: Failed to start nginx.service - A high>
Jul 01 13:29:54 vps-f5bcd7f3 systemd[1]: nginx.service: Unit cannot be reloaded>
Jul 01 13:38:27 vps-f5bcd7f3 systemd[1]: nginx.service: Unit cannot be reloaded>
Jul 01 13:46:59 vps-f5bcd7f3 systemd[1]: nginx.service: Unit cannot be reloaded>
lines 1-15/15 (END)
There’s not much to go on. Have you checked /var/log/nginx/error.log?
Perhaps post your config file.
You can also check your config file by running:
sudo nginx -t