acacha / llum

Llum (light in catalan language) illuminates your Laravel projects speeding up your Github/Laravel development workflow
MIT License
108 stars 13 forks source link

Failed to listen on localhost:8000 (reason: Address already in use) #10

Closed includeleec closed 8 years ago

includeleec commented 8 years ago

i start other project.


php artisan serve Laravel development server started on http://localhost:8000/ [Sun May 15 22:48:57 2016] Failed to listen on localhost:8000 (reason: Address already in use)

acacha commented 8 years ago

Of course 8000 is the default port. Use instead:

php artisan serve --port=8005

This is the reason I write:

llum serve

It never fails if ports is occupied because it uses another one

razzaa commented 3 years ago

for me php -S localhost:8000 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 @alibulc

I did Laravel development server started: <http://127.0.0.1:8000> [Wed Nov 4 12:07:47 2020] Failed to listen on 127.0.0.1:8000 (reason: Address already in use) then I.. sudo netstat -plnt find the process running on port 8000 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 649/mysqld tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 356/systemd-resolve tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 603/cupsd tcp 2 0 127.0.0.1:8000 0.0.0.0:* LISTEN 22225/php7.4 tcp6 0 0 :::3308 :::* LISTEN 17273/mysqld tcp6 0 0 :::80 :::* LISTEN 635/apache2 tcp6 0 0 :::21 :::* LISTEN 17372/proftpd: (acc tcp6 0 0 ::1:631 :::* LISTEN 603/cupsd tcp6 0 0 :::33060 :::* LISTEN 649/mysqld then force kill it..

kill -9 22225 then run... php artisan serve Laravel development server started: <http://127.0.0.1:8000> [Wed Nov 4 12:16:36 2020] PHP 7.4.12 Development Server (http://127.0.0.1:8000) started