等待本地主机...永无止境 [英] Waiting for localhost... never ends

查看:105
本文介绍了等待本地主机...永无止境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Laravel.在XAMPP的htdocs文件夹中,我的laravel根文件夹名称为sh. 我运行了以下代码

I am using Laravel. In XAMPP's htdocs folder my laravel root folder name is sh. I ran the following code

php artisan serve

发现

 Laravel development server started: <http://127.0.0.1:8000>

在我写的浏览器地址栏中

In Browser Address Bar I wrote

localhost:8000

现在

等待本地主机...

waiting for localhost...

永无止境.

我运行了这段代码

C:\>netstat -a

在很长的列表中我发现了

in a long list I found that

TCP    127.0.0.1:8000         ommited-PC:0            LISTENING
TCP    127.0.0.1:8000         ommited-PC:49674        ESTABLISHED

在我写的浏览器地址栏中

In Browser's address bar I wrote

http://localhost/sh/public/

该站点正确打开.

这是我的观察.我不知道为什么本地主机永远等待,我该怎么办.

This is my observation. I don't know why localhost waits for ever and what should I do.

推荐答案

已解决

这是因为Avast Antivirus. Avast错误地将 server.php 文件视为威胁.我在此链接后出现了异常

Solved

This was because of Avast Antivirus. By mistake Avast treated server.php file as a threat. I make an exception following this link

https://support.avast.com/en-ww /article/Antivirus-scan-exclusions

然后问题解决了.

这篇关于等待本地主机...永无止境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆