httpd: Could not reliably determine the server's fully qualified domain name
[root@luozhonghua sbin]# service httpd startStarting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
遇到這個情況,說明80端口被占用,也就是你係統已有了80端口暫用,怎麼辦了
先檢查下:
[root@luozhonghua sbin]# netstat -lnp|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5619/nginx
unix 2 [ ACC ] STREAM LISTENING 12380 1759/abrtd /var/run/ab rt/abrt.socket
unix 2 [ ACC ] STREAM LISTENING 16831 2143/nautilus /tmp/orbit- root/linc-85f-0-3e753e8283a80
方法是,關閉被占用的程序,一般來說,也就是另一個容器而已
比如我機器上就有nginx占用,那麼 ./usr/local/nginx/nginx -s stop
然後再起 service httpd start
即可
當然另一種辦法就是修改httpd默認端口80,但不推薦
最後更新:2017-04-03 05:39:19