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?

3 Replies

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.

I have this probem too, please help me

@aptphuong are you able to run the suggested commands and check your log files as suggested by @aorme? Feel free to include any outputs or file contents for help with interpreting them.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct