Cannot sart NGINX (98: Address already in use)

16 views
Skip to first unread message

Tony

unread,
Apr 14, 2012, 6:38:48 PM4/14/12
to Free...@googlegroups.com
Hello,
 
I am in the final stop of the installation and whey trying to start nginx I get the following error:
 
Starting nginx: nginx: [emerg] bind() to 192.168.4.133:80 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:443 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:80 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:443 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:80 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:443 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:80 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:443 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:80 failed (98: Address already in use)
nginx: [emerg] bind() to 192.168.4.133:443 failed (98: Address already in use)
nginx: [emerg] still could not bind()
                                                           [FAILED]
 
 
I am running Centons 6. Apache is not installed so there is no httpd service running.

Here is the output of lsof -i tcp:80 and lsof -i tcp:443
 
 
+++++++++++++++++++++++++++++++
 
[root@localhost ~]# lsof -i tcp:80
COMMAND  PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   1458       root    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1460 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1461 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1462 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1463 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1465 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1466 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1467 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
nginx   1468 freeswitch    7u  IPv4  13453      0t0  TCP 192.168.4.133:http (LIS                                                                                        TEN)
 
+++++++++++++++++++++++++++++
 
COMMAND  PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   1458       root    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1460 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1461 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1462 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1463 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1465 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1466 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1467 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
nginx   1468 freeswitch    8u  IPv4  13454      0t0  TCP 192.168.4.133:https (LISTEN)
How can I resolve this issue?
Any help will be appreciated.
 
Thanks
Tony
Reply all
Reply to author
Forward
0 new messages