gpt4 book ai didi

php - artisan 错误 : Failed to listen on localhost:8000

转载 作者:IT王子 更新时间:2023-10-29 01:06:06 26 4
gpt4 key购买 nike

我在开始安装 laravel 时遇到问题。每当我输入终端“php artisan serve”时,它都会给我一个错误:

Failed to listen on localhost:8000 (reason:une tentative d'access unα socket de maniere interdite par ses autorisation d'access a 0t0tent0e)

关于如何解决这个问题有什么想法吗?

提前致谢。

img 问题 http://i.imgur.com/rOt3Lat.png

它现在可以工作了,我只是将监听端口从 8000 更改为 8888 或您的服务未使用它的任何其他端口

'php artisan serve --port="8888"'

最佳答案

修复错误:无法在 localhost:8000 上监听(原因:地址已在使用中)

列出包含 php 的进程

ps -ef | grep php

示例输出

501  **9347**     393    0  1:29PM ttys000    0:00.21 php artisan serve
501 9351 **9347** 0 1:29PM ttys000 0:02.01 /usr/local/php5-5.6.14-20151002-085853/bin/php -S localhost:8000 .../laravel/server.php
501 9781 393 0 1:56PM ttys000 0:00.00 grep php

然后杀死进程

kill -9 9347

关于php - artisan 错误 : Failed to listen on localhost:8000,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27900174/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com