Zaktualizowałem sobie nginxa do 1.5.6, i teraz jest mały problem, a mianowicie gdy wykonuje service nginx restart to wyskakuje następujący błąd:
Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 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 0.0.0.0:80 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 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() nginx. root@lanceq:~#
Zawartość nginx.conf:
dodatkowo jeszcze kilka komend aby sprawdzić port:
root@lanceq:~# netstat -lnp | grep 0.0.0.0:80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2759/nginx
root@lanceq:~# fuser 80/tcp 80/tcp: 2759 2765
root@lanceq:~# lsof +M -i4 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dhclient 1617 root 5u IPv4 5039 0t0 UDP *:bootpc dhclient 1617 root 20u IPv4 4999 0t0 UDP *:65425 rpcbind 1708 root 6u IPv4 5563 0t0 UDP *:sunrpc[portmapper] rpcbind 1708 root 7u IPv4 5566 0t0 UDP *:npmp-gui rpcbind 1708 root 8u IPv4 5567 0t0 TCP *:sunrpc[portmapper] (LI rpc.statd 1739 statd 4w IPv4 5608 0t0 UDP localhost:643 rpc.statd 1739 statd 7u IPv4 5615 0t0 UDP *:46344[status] rpc.statd 1739 statd 8u IPv4 5619 0t0 TCP *:56583[status] (LISTEN) named 2173 bind 21u IPv4 6260 0t0 TCP localhost:domain (LISTEN named 2173 bind 22u IPv4 6262 0t0 TCP hosted-by.slaskdatacente named 2173 bind 23u IPv4 5936 0t0 TCP localhost:953 (LISTEN) named 2173 bind 513u IPv4 6259 0t0 UDP localhost:domain named 2173 bind 514u IPv4 6261 0t0 UDP hosted-by.slaskdatacente memcached 2641 nobody 26u IPv4 6113 0t0 TCP localhost:11211 (LISTEN) memcached 2641 nobody 27u IPv4 6115 0t0 UDP localhost:11211 /usr/sbin 2725 amavis 5u IPv4 7175 0t0 TCP localhost:10024 (LISTEN) nginx 2759 root 6u IPv4 6634 0t0 TCP *:http (LISTEN) nginx 2765 nobody 6u IPv4 6634 0t0 TCP *:http (LISTEN) sshd 3089 root 3u IPv4 7458 0t0 TCP *:ssh (LISTEN) mysqld 3113 mysql 10u IPv4 7486 0t0 TCP *:mysql (LISTEN) mysqld 3113 mysql 33u IPv4 8727 0t0 TCP localhost:mysql->localho /usr/sbin 3138 amavis 5u IPv4 7175 0t0 TCP localhost:10024 (LISTEN) /usr/sbin 3138 amavis 11u IPv4 8726 0t0 TCP localhost:54709->localho /usr/sbin 3138 amavis 12u IPv4 8736 0t0 TCP localhost:47561->localho /usr/sbin 3139 amavis 5u IPv4 7175 0t0 TCP localhost:10024 (LISTEN) dovecot 3237 root 22u IPv4 7706 0t0 TCP *:pop3 (LISTEN) dovecot 3237 root 24u IPv4 7708 0t0 TCP *:pop3s (LISTEN) dovecot 3237 root 32u IPv4 7722 0t0 TCP *:imap2 (LISTEN) dovecot 3237 root 34u IPv4 7724 0t0 TCP *:imaps (LISTEN) master 3713 root 12u IPv4 6912 0t0 TCP *:smtp (LISTEN) master 3713 root 110u IPv4 7012 0t0 TCP localhost:10025 (LISTEN) sshd 3764 root 3r IPv4 8455 0t0 TCP hosted-by.slaskdatacente ntpd 3770 ntp 16u IPv4 7070 0t0 UDP *:ntp ntpd 3770 ntp 18u IPv4 7077 0t0 UDP localhost:ntp ntpd 3770 ntp 19u IPv4 7078 0t0 UDP hosted-by.slaskdatacente smtpd 3887 postfix 6u IPv4 7012 0t0 TCP localhost:10025 (LISTEN) sshd 3894 root 3r IPv4 8784 0t0 TCP hosted-by.slaskdatacente smtpd 4029 postfix 6u IPv4 6912 0t0 TCP *:smtp (LISTEN)