System process (PID=4) uses a 80 port solution

Source: Internet
Author: User
Tags server port

Today, the installation of PHP environment is always prompt 80 port is occupied on the internet for half a day there is no solution

CMD below netstat pid4 this process when found

Start thinking that the IIS service has stopped or not. Uninstall Internet Information Service in the Control Panel or not after the World Wide Web service

For a while, it was sql08. The report service takes up the system process and is not necessarily the IIS

When the Apache starts. This error occurs:
Typically each socket address (Protocol/network address/port) is allowed only once: Make_sock:could not bind to address 0.0.0.0:80

Multi-party experimental solution:
1, enter CMD into DOS command line window in operation
2, enter command NETSTAT-ANB

See 80 port is tomcat5 in use, close it, Apache started normally! If your 80 port is occupied by other programs, you can close the program directly!

Run under cmd:

Apache-k Install

Apache-k start

This Apache error hint!

Maybe you also installed another Web server, such as IIS, its default port is also 80, you need to modify its default port or modify Apache.

If you install a different Web server, stop and install Apache in the system service.

If there is no other server installed, just Apache installed several times, then uninstall Apache at the same time, be sure to remove the Apache installation path in the disk under the file, the new boot computer, and then the new installation Apache, will be OK.

The main is the Web server port conflict, there are many times the loading and unloading of the dirty.

Installation problem and solution of apache2 under WinXP

Problems with installing Apache 2:

"(OS 10048) is typically used only once per socket address (Protocol/network address/Port):

Make_sock:could not bind to address 0.0.0.0:80 ... "

Typically IIS or another program consumes 80 of ports

Analysis:

Netstat-a

View the appropriate port, whether a program occupies

Netstat-ab

View specific occupancy programs

Two workarounds:

1. Open Control Panel and services to find the appropriate services such as IIS admin shutdown and disable

2. If you do not want to shut down the IIS service, you can change the port used by Apache to another port

The apache2/conf/httpd.conf in the

Listen 80 Change to Listen (the port you want to use) such as Listen 8080

However, when you visit the Web service under your Apache, add the port number after the domain name

such as: http://localhost:8080

Then use CMD to enter the command line mode into the directory where you installed Apache/apache2/bin

Input

Apache-k Install

Apache-k start

Typically, each socket address (Protocol/network address/port) is allowed to be used only once.

  

After the study found that the original:

All unmanaged resource programs must be able to control the release of resources, such as database connections, socket connections, and so on should be displayed closed, if it is a long connection, you should ensure that all occupied connections are closed when the program exits.

The bound port is not disposed, waits for some time, or calls close to close the UDP socket when the program exits.

I looked at the task manager process and found that the previous page was caused by the development server, and I ended the process:


Forcibly shutting down port 8080
Here's the workaround: 1. Open cmd. Cmd
2. Find the PID of the port number NETSTAT-A-O
3. Forcibly close the Ntsd-c q-p pid (the PID number that is queried)

System process (PID=4) uses a 80 port solution

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.