cameron1
By:
cameron1

NGINX wont start

January 30, 2014 4k views
I install virtualmin on centos earlier, then replaced apcahe with NGINX, it worked for a while then it seemed to stop and when i restart it this is what i get below. Any ideas why ? Failed to start service : Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 188.226.142.188:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 188.226.142.188:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 188.226.142.188:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 188.226.142.188:443 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 188.226.142.188:443 failed (98: Address already in use) nginx: [emerg] still could not bind() [FAILED]
3 Answers
The issue sound more like you have something running on the same port and address. What does lsof -i :80 return
Turns out apache has turned on again
it is better to remove apache to make sure only nginx working!!
Have another answer? Share your knowledge.