![来自 Apache 的崩溃错误](https://linux22.com/image/565224/%E6%9D%A5%E8%87%AA%20Apache%20%E7%9A%84%E5%B4%A9%E6%BA%83%E9%94%99%E8%AF%AF.png)
(无):~# /etc/init.d/apache2 restart 重新启动 Web 服务器:apache2 reboot ... 等待 (98)地址已在使用中:make_sock:无法绑定到地址 [::]:80 (98)地址已在使用中:make_sock:无法绑定到地址 0.0.0.0:80 没有可用的监听套接字,正在关闭 无法打开日志失败! (无):~#
在 debian 上,有人知道这是什么意思吗?
编辑:
lsof-i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 1926 daemon 4u IPv4 4615 UDP *:sunrpc
portmap 1926 daemon 5u IPv4 4621 TCP *:sunrpc (LISTEN)
rpc.statd 1937 statd 5u IPv4 4647 UDP *:841
rpc.statd 1937 statd 7u IPv4 4658 UDP *:36239
rpc.statd 1937 statd 8u IPv4 4661 TCP *:41621 (LISTEN)
named 2174 bind 20u IPv6 5186 TCP *:domain (LISTEN)
named 2174 bind 21u IPv4 5189 TCP localhost:domain (LISTEN)
named 2174 bind 22u IPv4 5191 TCP ns1.**********.com:domain (LI STEN)
named 2174 bind 23u IPv4 5193 TCP ns2.**********.com:domain (LI STEN)
named 2174 bind 24u IPv4 5195 TCP customer.worldstream.nl:d omain (LISTEN)
named 2174 bind 25u IPv4 5196 TCP localhost:953 (LISTEN)
named 2174 bind 26u IPv6 5197 TCP localhost:953 (LISTEN)
named 2174 bind 512u IPv6 5185 UDP *:domain
named 2174 bind 513u IPv4 5188 UDP localhost:domain
named 2174 bind 514u IPv4 5190 UDP ns1.**********.com:domain
named 2174 bind 515u IPv4 5192 UDP ns2.**********.com:domain
named 2174 bind 516u IPv4 5194 UDP customer.worldstream.nl:d omain
lwresd 2192 root 512u IPv4 5233 UDP localhost:921
sshd 2209 root 3u IPv6 5260 TCP *:ssh (LISTEN)
sshd 2209 root 4u IPv4 5262 TCP *:ssh (LISTEN)
mysqld 2286 mysql 10u IPv4 5358 TCP localhost:mysql (LISTEN)
master 2429 root 12u IPv4 5661 TCP *:smtp (LISTEN)
dovecot 2456 root 5u IPv4 5813 TCP *:imap2 (LISTEN)
dovecot 2456 root 6u IPv4 5814 TCP *:imaps (LISTEN)
dovecot 2456 root 7u IPv4 5815 TCP *:pop3 (LISTEN)
dovecot 2456 root 8u IPv4 5816 TCP *:pop3s (LISTEN)
imap-logi 2497 dovecot 0u IPv4 5813 TCP *:imap2 (LISTEN)
imap-logi 2497 dovecot 1u IPv4 5814 TCP *:imaps (LISTEN)
imap-logi 2498 dovecot 0u IPv4 5813 TCP *:imap2 (LISTEN)
imap-logi 2498 dovecot 1u IPv4 5814 TCP *:imaps (LISTEN)
imap-logi 2499 dovecot 0u IPv4 5813 TCP *:imap2 (LISTEN)
imap-logi 2499 dovecot 1u IPv4 5814 TCP *:imaps (LISTEN)
apache2 2500 root 3u IPv6 5933 TCP *:www (LISTEN)
pop3-logi 10494 dovecot 0u IPv4 5815 TCP *:pop3 (LISTEN)
pop3-logi 10494 dovecot 1u IPv4 5816 TCP *:pop3s (LISTEN)
pop3-logi 10495 dovecot 0u IPv4 5815 TCP *:pop3 (LISTEN)
pop3-logi 10495 dovecot 1u IPv4 5816 TCP *:pop3s (LISTEN)
pop3-logi 10496 dovecot 0u IPv4 5815 TCP *:pop3 (LISTEN)
pop3-logi 10496 dovecot 1u IPv4 5816 TCP *:pop3s (LISTEN)
apache2 12270 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12362 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12362 www-data 18u IPv6 1819101 TCP ns1.**********.com:www->77.28 .128.86:1619 (CLOSE_WAIT)
apache2 12426 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12461 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12461 www-data 18u IPv6 1818917 TCP ns1.**********.com:www->201-9 5-197-250.dsl.telesp.net.br:4479 (CLOSE_WAIT)
apache2 12482 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12484 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12484 www-data 18u IPv6 1818866 TCP ns1.**********.com:www->crawl -66-249-66-82.googlebot.com:52039 (CLOSE_WAIT)
apache2 12488 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12488 www-data 18u IPv6 1819029 TCP ns1.**********.com:www->112.2 01.101.139.pldt.net:63010 (CLOSE_WAIT)
apache2 12497 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12497 www-data 18u IPv6 1819271 TCP ns1.**********.com:www->218.1 86.8.12.cache.maxonline.com.sg:46939 (CLOSE_WAIT)
apache2 12498 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12508 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12508 www-data 18u IPv6 1817510 TCP ns1.**********.com:www->27.11 4.163.5:39928 (CLOSE_WAIT)
apache2 12522 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12522 www-data 18u IPv6 1818318 TCP ns1.**********.com:www->host- 78-149-249-247.as13285.net:10024 (CLOSE_WAIT)
apache2 12523 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12523 www-data 18u IPv6 1818932 TCP ns1.**********.com:www->182.1 83.191.113:50494 (CLOSE_WAIT)
apache2 12975 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12975 www-data 18u IPv6 1818501 TCP ns1.**********.com:www->120.1 8.250.170:52049 (CLOSE_WAIT)
apache2 12982 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12982 www-data 18u IPv6 1818734 TCP ns1.**********.com:www->112.2 10.191.112.pldt.net:55611 (CLOSE_WAIT)
apache2 12987 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12987 www-data 18u IPv6 1818472 TCP ns1.**********.com:www->122.5 4.221.45.pldt.net:61861 (CLOSE_WAIT)
apache2 12989 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12991 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12991 www-data 18u IPv6 1819004 TCP ns1.**********.com:www->112.2 03.98.49.pldt.net:57522 (CLOSE_WAIT)
apache2 12997 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12997 www-data 18u IPv6 1817901 TCP ns1.**********.com:www->113.2 2.112.193:3295 (CLOSE_WAIT)
apache2 12999 www-data 3u IPv6 5933 TCP *:www (LISTEN)
apache2 12999 www-data 18u IPv6 1818255 TCP ns1.**********.com:www->local host:3314 (CLOSE_WAIT)
apache2 13001 www-data 3u IPv6 5933 TCP *:www (LISTEN)
netstat -tulpn| grep :80
(none):~# netstat -tulpn| grep :80 tcp6 0 0 :::80 :::* LISTEN 2500/apache2
killall -9 阿帕奇
apache: no process killed
答案1
检查哪些进程正在监听:80:
netstat -tulpn| grep :80
还要检查日志的路径是什么(可能是 vhost 的附加路径) - 它存在吗?apache 有访问权限吗?
答案2
可能已经在端口 80 上运行某些程序。尝试查找在端口 80 上运行的任何其他 Web 服务器,或手动终止所有剩余的 apache (httpd) 进程
killall -9 apache
在某些系统上,apache 进程可能作为 httpd 运行