error running apache after xampp install

后端 未结 6 1918
难免孤独
难免孤独 2020-12-05 23:50

I installed xampp on win7 and get this error when starting apache. I unchecked skype and nothing changes. How do I find what is using port 80? How do I fix this please. I do

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 00:09

    I think killing the process which is uses that port is more easy to handle than changing the ports in config files. Here is how to do it in Windows. You can follow same procedure to Linux but different commands. Run command prompt as Administrator. Then type below command to find out all of processes using the port.

    netstat -ano
    

    There will be plenty of processes using various ports. So to get only port we need use findstr like below (here I use port 80)

    netstat -ano | findstr 80
    

    this will gave you result like this

    TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7964
    

    Last number is the process ID of the process. so what we have to do is kill the process using PID we can use taskkill command for that.

    taskkill /PID 7964 /F
    

    Run your server again. This time it will be able to run. This can uses for Mysql server too.

提交回复
热议问题