After installing Apache in Linux, start the prompt (98) Address already in use: make_sock: cocould not bind to address [::]: 80, stillcouldnotbind

Source: Internet
Author: User

After installing Apache in Linux, start the prompt (98) Address already in use: make_sock: cocould not bind to address [::]: 80, stillcouldnotbind

I tested it in Ubuntu. The operations are the same for other system references.


When you see this prompt, you should think of port occupation.


Let's first netstat-lnp | grep 80 to see if there is any program that occupies the port (remember to run it with the root permission, otherwise it is not completely displayed)

Then check whether there is LISTEN (process ID)/(process name) in the next line of the command)


If yes, kill the process ID and try to start Apache again.


If an error is reported after kill, open the httpd. conf or apache2.conf file (this is the case when Ubuntu is installed through apt-get)


Delete this line of Listen 80, because under the directory of the same level as apache2.conf, there is a port. conf already included


This error is also reported for repeated listening port numbers. Restart later. It should be okay.

Related Article

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.