简体   繁体   English

找不到XAMPP本地主机错误

[英]XAMPP localhost error not found

First I tried to start apache but got unexpected error because default port 80 is being used by another program then I tried to terminate that program with in windows command line I typed resmon.exe to find out which program is using the port 80. I found out it is PID 4 then I tried to terminate with command taskkill/ PID 4 but got this 首先,我尝试启动apache,但出现意外错误,因为另一个程序正在使用默认端口80,然后我尝试在Windows命令行中终止该程序,并键入resmon.exe以找出哪个程序正在使用端口80。出来是PID 4然后我尝试用命令taskkill/ PID 4终止,但是得到了这个

"ERROR: The process with PID 4 could not be terminated. “错误:PID 4的过程无法终止。

Reason: Access is denied. 原因:访问被拒绝。

Secondly, I tried to change ports after and get apache running but got another problem 其次,我尝试在之后更改端口并使apache运行,但是又遇到了另一个问题

HTTP Error 404. The requested resource is not found. HTTP错误404。找不到请求的资源。

It is meaning local host could not be found. 这意味着找不到本地主机。 I got stuck now any ideas? 我现在有任何想法吗?

It might be skype or windows IIS server running on your port 80 端口80上运行的可能是Skype或Windows IIS服务器

try this 尝试这个

  1. Run cmd as Administrator 以管理员身份运行cmd
  2. use C:\\>Taskkill /PID 'pid of your process' /F to kill the task 使用C:\\>Taskkill /PID 'pid of your process' /F任务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM