1. Start the Apache times wrong:
[[Email protected] sh]# service httpd startstarting httpd:httpd:Could not reliably determine the server ' s fully qualifie d 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. Query to 80 port is Nginx occupied:
[Email protected] sh]# NETSTAT-TULNP | grep ":" tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1327/nginx
3. Find the Nginx process number:
[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. Kill the process:
[[email protected] sh]# kill-9 1327[[email protected] sh]# kill-9 1329
5. Re-open Apache:
[[Email protected] sh]# service httpd startstarting httpd:httpd:Could not reliably determine the server ' s fully qualifie d domain name, using Localhost.localdomain for ServerName [ OK ]
Linux startup Apache times wrong: (98) address already in use:make_sock:could not bind to Address [::]:80