標籤:eterm min 報錯 linu fail local could highlight ldo
1. 啟動 Apache 時報錯:
[[email protected] sh]# service httpd startStarting httpd: httpd: Could not reliably determine the server‘s fully qualified domain name, using localhost.localdomain 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:80no listening sockets available, shutting downUnable to open logs [FAILED]
2. 查詢到 80 連接埠被 nginx 佔用:
[[email protected] sh]# netstat -tulnp | grep ":80"tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1327/nginx
3. 找到 nginx 的進程號:
[[email protected] sh]# ps -ef | grep nginxroot 1327 1 0 11:35 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confwww 1329 1327 0 11:35 ? 00:00:00 nginx: worker process root 3902 1789 0 14:41 pts/0 00:00:00 grep --color=auto nginx
4. 殺掉進程:
[[email protected] sh]# kill -9 1327[[email protected] sh]# kill -9 1329
5. 重新開啟 Apache:
[[email protected] sh]# service httpd startStarting httpd: httpd: Could not reliably determine the server‘s fully qualified domain name, using localhost.localdomain for ServerName [ OK ]
Linux 啟動 Apache 時報錯:(98)Address already in use: make_sock: could not bind to address [::]:80