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.


Server
published
v.0.01




© 2024 - ErnesTech - Privacy
E-Commerce Return Policy