Linux startup Apache times wrong: (98) address already in use:make_sock:could not bind to Address [::]:80

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.