问题
I am using Laravel. In XAMPP's htdocs folder my laravel root folder name is sh. I ran the following code
php artisan serve
and found that
Laravel development server started: <http://127.0.0.1:8000>
In Browser Address Bar I wrote
localhost:8000
now
waiting for localhost...
never ends.
I ran this code
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/
the site opens correctly.
This is my observation. I don't know why localhost waits for ever and what should I do.
回答1:
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
then the problem has been solved.
回答2:
- Try to run in different port. Check this thread for further detail... Click here
来源:https://stackoverflow.com/questions/54925378/waiting-for-localhost-never-ends