Artisan Error: Failed to listen on localhost:8000

后端 未结 11 791
清酒与你
清酒与你 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:10

    The solution I found a problem we face several times in Ubuntu.

    *Failed to listen on 127.0.0.1:8000 (reason: Address already in use)*
    

    What we do, we change the port, right?

    This problem can be solved also in few seconds following below steps.
    1. Open Terminal
    2. **sudo su**
    3. **netstat -plnt**
    _find the process running on port 8080_
    4. **kill -9 PROCESSNUMBER**
    

    For more details, see my blog, click here

提交回复
热议问题