Modify Apache's default port

Source: Internet
Author: User
Tags mssqlserver

Modify Apache's default port
The way to modify the Apache port is the most compromise method, the consequence is that when you open the Apache server, the access to the native address will be accompanied by a port number, such as http://localhost:8888.
Modify the method is to directly modify the httpd.conf file, the location of the file in the Apache installation directory under the Conf folder, directly open with Notepad, find Listen 80, the 80 is modified to other unused ports.
Note: Lines beginning with # in the httpd.conf file are closed, not valid, and lines that do not begin with # are enabled.
Find out who is using the 80 port method
Enter the command prompt line (start running input CMD), enter the command Netstat–ano, you can see the use of all ports in this machine, general 80 port in the first line, display, the port has been occupied, PID LISTENING 4.


Which one is the pid=4 program? Then, at the command prompt and under input command tasklist, list all currently running processes,
Discover the process of pid=4, incredibly is system.


Canceling the system process's use of port 80
In fact, I use the Apache good, but suddenly can not start, recall in this period of new software installed, face so big, can let the system occupy 80 port, can only have SQL Server 2008. After querying, it is found that occupying port 80 is indeed a component of SQL Server 2008--sql Server Reporting Services (MSSQLSERVER). is the SQL Server log system, he is very well suddenly occupied 80 port, and for ordinary people, the role of this component is not useful, turn off is also save resources.
The Close method is simple, enter services.msc in the Run box and enter the service window. Or simply type "service" in the search box in the Start menu to open it. Then the SQL Server Reporting Services (MSSQLSERVER) service is found and then stopped, and the 80 ports that are occupied are released. You can also set the startup mode to "disabled".

Now the 80 port is no longer occupied.


See clearly, that's it.
Another reason for being occupied
In addition, I also found on the Internet another 80 port by the system occupancy reason, is the Microsoft Home IIS Services, the shutdown method can go to the control Panel to shut down.

Modify Apache's default port

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.