Home>Article>Operation and Maintenance> What should I do if port 80 is occupied when phpstudy is running?
When running PHPstudy, it prompts that port 80 is occupied and the program cannot run.
Solution steps:
1. Check what program occupies port 80. Generally, use the cmd that comes with Windows. Tools will do.
Press the Windows key R key directly below the keyboard, enter "cmd", and click "OK";
2. Enter cmd In the interface, enter "netstat -ano" and press the Enter key;
will display information such as the port and program ID occupied by the program in the current computer;
The first one I saw is: 0.0.0.0:80 This is port 80, which is the tcp protocol, and the following PID is 4;
3 , End the process
Open the computer's task manager by pressing Ctrl Alt Delete three keys together, and then click "PID" to let the manager sort by PID, so that we can view it more conveniently. I saw the program with PID 4.
If you don’t see the PID, you need to set up the manager: "View"->"Select Column"->Check "PID" options.
Finally, select the process with PID 4, then right-click and select End Process;
4. After ending the process, no program will occupy port 80 , and then enter the PHPstudy interface and "start" it, the program will run normally.
The above is the detailed content of What should I do if port 80 is occupied when phpstudy is running?. For more information, please follow other related articles on the PHP Chinese website!