AzharHafiz
04-14-2010, 07:37 PM
$ sudo /usr/local/sbin/nginx
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
OS: debian 64-bit
help? :confused:
ServerCabinCRM
04-14-2010, 07:42 PM
Do you have another web server using Port 80?
Run
netstat -tulpn| grep :80
To find out what is running on port 80.
AzharHafiz
04-14-2010, 07:55 PM
$ netstat -tulpn| grep :80
(No info could be read for "-p": geteuid()=1000 but you should be root.)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
nope I just install nginx,no apache no lightpadd
According to that, something is listening on port 80.
qualityhostings
04-15-2010, 12:03 AM
Hi
Try this
fuser -k 80/tcp
service nginx restart
AzharHafiz
04-15-2010, 03:09 AM
Hi
Try this
fuser -k 80/tcp
service nginx restart
can restart nginx
AzharHafiz
04-15-2010, 05:25 AM
nope i meant cant restart nginx
AzharHafiz
04-15-2010, 05:28 AM
$ grep 80 /etc/services
www 80/tcp http # WorldWideWeb HTTP
www 80/udp # HyperText Transfer Protocol
socks 1080/tcp # socks proxy server
socks 1080/udp
http-alt 8080/tcp webcache # WWW caching service
http-alt 8080/udp # WWW caching service
amanda 10080/tcp # amanda backup services
amanda 10080/udp
omirr 808/tcp omirrd # online mirror
omirr 808/udp omirrd
canna 5680/tcp # cannaserver
zope-ftp 8021/tcp # zope management by ftp
tproxy 8081/tcp # Transparent Proxy
omniorb 8088/tcp # OmniORB
omniorb 8088/udp
qualityhostings
04-15-2010, 09:00 AM
Did you see any error when you type 'service nginx restart' ?
AzharHafiz
04-15-2010, 09:12 AM
nope
$ service nginx restart
-bash: service: command not found
im not sure what web server is running cos I have none besides installing nginx
qualityhostings
04-15-2010, 09:14 AM
Hi
in that case please try
fuser -k 80/tcp ; /etc/init.d/nginx restart