Artisan Error: Failed to listen on localhost:8000

后端 未结 11 796
清酒与你
清酒与你 2021-01-30 08:58

I\'m having problem starting my laravel installation. Whenever I type in the terminal \'php artisan serve\' it responses me an error:

Fai

11条回答
  •  日久生厌
    2021-01-30 09:25

    for me php -S localhost:8080 from the terminal in vs code will sometimes crash, but still be running in the background.

    -9 to force kill did it for me thanks @hemss

    I did

    php -S localhost:8080
    
    [Wed Dec 12 13:48:03 2018] Failed to listen on localhost:8080(reason: Address already in use)
    

    then I..

    sudo netstat -plnt
    

    find the process running on port 8080

    tcp        2      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      10312/php
    

    then force kill it..

    kill -9 10312
    

    I get

    [1]  + 10312 killed     php -S localhost:8080
    

    then restart...

    php -S localhost:8080
    

提交回复
热议问题