系统重启后发现,Apache启动失败
报错如下:
# ./apachectl start
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
查了下80
#netstat -Inp|grep 80
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 17803/cupsd
tcp 0 0 :::5803 :::* LISTEN 5962/java
tcp 0 0 :::5804 :::* LISTEN 5962/java
tcp 0 0 :::8880 :::* LISTEN 8101/java
tcp 0 0 :::80 :::* LISTEN 17838/httpd
tcp 0 0 :::9809 :::* LISTEN 4335/java
tcp 0 0 :::9080 :::* LISTEN 8101/java
tcp 0 0 :::8093 :::* LISTEN 5962/java
udp 0 0 0.0.0.0:631 0.0.0.0:* 17803/cupsd
准备kill掉httpd,然后重启Apache
但是一直失败,jobID一直递增
后来就查了下http
# ps -ef|grep http
apache 17843 1 0 Oct27 ? 00:00:00 /usr/sbin/httpd -k start
apache 17844 1 0 Oct27 ? 00:00:00 /usr/sbin/httpd -k start
apache 17845 1 0 Oct27 ? 00:00:00 /usr/sbin/httpd -k start
root 24365 23466 0 10:29 pts/1 00:00:00 grep http
然后看到了3个ID
逐个kill掉
#kill -9 17845
#kill -9 17844
#kill -9 17843
重启Apache,成功!
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。