this weekend i added to my VPS some ipv6 address, so of course i wanted to use them on my sites
anyway
i changed in my domain config
from
listen 80;
to
listen [::]:80;
after i tried to restart nginx i got some errors
Restarting nginx: nginx.
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
saying that the port [::]:80 is already in use
after reverting my configuration and started nginx i used netstat
output
root@cnet:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3750/nginx
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1013/perl
tcp 0 0 178.157.81.119:53 0.0.0.0:* LISTEN 1179/mydns
tcp 0 0 127.0.0.2:53 0.0.0.0:* LISTEN 1179/mydns
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1179/mydns
tcp 0 0 0.0.0.0:54 0.0.0.0:* LISTEN 162/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 954/master
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 954/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1120/mysqld
tcp6 0 0 2001:67c:228c:2::8c2:53 :::* LISTEN 1179/mydns
tcp6 0 0 2001:67c:228c:2::94b:53 :::* LISTEN 1179/mydns
tcp6 0 0 2001:67c:228c:2::a97:53 :::* LISTEN 1179/mydns
tcp6 0 0 ::1:53 :::* LISTEN 1179/mydns
tcp6 0 0 2001:67c:228c:2::2b0:53 :::* LISTEN 1179/mydns
tcp6 0 0 :::54 :::* LISTEN 162/sshd
udp 0 0 0.0.0.0:10000 0.0.0.0:* 1013/perl
udp 0 0 178.157.81.119:53 0.0.0.0:* 1179/mydns
udp 0 0 127.0.0.2:53 0.0.0.0:* 1179/mydns
udp 0 0 127.0.0.1:53 0.0.0.0:* 1179/mydns
udp6 0 0 2001:67c:228c:2::8c2:53 :::* 1179/mydns
udp6 0 0 2001:67c:228c:2::94b:53 :::* 1179/mydns
udp6 0 0 2001:67c:228c:2::a97:53 :::* 1179/mydns
udp6 0 0 ::1:53 :::* 1179/mydns
udp6 0 0 2001:67c:228c:2::2b0:53 :::* 1179/mydns
i couldn't find :::80 in here ... so who's using it ?
http://xDNS.ro && http://xLiST.ro Powered By nginX