MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Check which software is occupying the Apache and IIS80 ports on the website

Source: Shangpin China | Type: website encyclopedia | Time: January 12, 2016
We are Website construction When starting the Apache server after completion, we often find that the port 80 we need to use is occupied by other programs, but we don't know who is occupying it. At this time, we need to find out the "real culprit". How do we do it?

View the port occupation on the Mac system:

1. Open the terminal input in the utility:

sudo lsof -i:3307

It is seen that port 3307 is occupied by MySQL, and the pid is 95.

2. Kill process according to PID

sudo kill -9 95

Windows View Port Occupancy:

1. Start -->Run -->cmd, or press window+R to call up the command window

 cmd

2. Enter the command netstat - ano to list all ports. In the list, we can observe the occupied port, such as 49157, and find it first.

 Enter the command: netstat - ano

3. View the PID corresponding to the occupied port, enter the command: netstat - aan | findstr "49157", enter, and record the last digit, that is, PID. Here is 2720

 View the PID corresponding to the occupied port


4. Continue to enter tasklist | findstr "2720" and press Enter to check which process or program occupies port 2720. The result is: svchost.exe

 Port 2720 occupied

5. Or we can open the task manager, switch to the process tab, and view the process corresponding to the 2720 in the PID column. If the PID column is not visible, see the following figure:

 Open Task Manager

6. Then we click View -->Select Column, tick the PID (Process Identifier), and click OK.

 Tick in front of PID (Process Identifier)

7. In this way, we can see the ID column of PID, and see who the process corresponding to 2720 is. If not, we can check the following process that shows all users. The image name is svchost.exe, and the description is that the main process of Windows is exactly the same as the above command.

 Main process of Windows


8. To end the process: select the process in the task manager and click the "End Process" button, or enter: taskkill/f/t/im Tenantdl.exe in the command window of cmd.

 End Process
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]