Cannot restart NGINX service in my linode: Systemctl restart nginx.service not working
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Why i cannot restart nginx.service in my linode?
Did you run the command that the error code suggested? Sometimes this'll have some relevant information in the message. Try running the command to restart Nginx and then run the
journalctl command right after.
$ sudo systemctl restart nginx.service $ sudo journalctl -xel
You could also check the nginx error logs (usually located at /var/log/nginx/error.log).
Also, in case there is a configuration issue with nginx, try running this command to verify the syntax in your nginx .conf files:
$ sudo nginx -t
For more information, check out this helpful writeup.