nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Today I’m facing the following error message after added custom module to nginx
2 | * Stopping Web Server nginx [OK] |
3 | * Starting Web Server nginx nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) |
4 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) |
5 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) |
6 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) |
7 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) |
8 | nginx: [emerg] still could not bind() |
solution?
check running pid
Kill
restart nginx