Nginx.service: Control process exited, code=exited status=1 (Failed to start LSB: Stop/start nginx)

Question: How do you start Nginx when it fails to start with an error: Nginx.service: Control process exited, code=exited status=1 (Failed to start LSB: Stop/start nginx)?

Solution: This means that there is something wrong with the Service, it could be that there is another process using port 80 or 443. In order to solve this problem, first, try to find out what process ID is using port 80 or try to find out if Nginx configuration is okay by typing: sudo nginx -t

2. Find out if there is a process using or blocking port 80. If you get an error that says: nginx: [emerg] bind() to IP:80 failed (98: Address already in use) then there should be another service using the port. The best way is to find out what process is using port 80 and then kill the process or just restart the server and make sure that you restart or start Nginx as soon as possible before that other service starts and blocks the port.


Edit this Article
Nginx Error Server published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy