Return the php artisan serve command to laravel

I have a laravel application. I ran the command 'php artisan serve'for local testing, and my application was sent to localhost: 8000 . But now I want to stop serving it to localhost: 8000 , i.e. I want him not to serve now.

I closed the command line, restarted the server, but it still works. How can I do that?

Note. I use windows for testing.

+13
source share
8 answers

Press Ctrl+ Shift+ ESC. Locate the PHP process that the wizard is running on and kill it by right-clicking → kill process.

Run the command again and start the server.

Note that you should be able to kill a process by simply sending it a kill signal with Ctrl+ C.

+15
source

that's what i do click ctrl+c

> lsof -i :8000

to check if the port is busy or not, if any process is listening on port 8000, it will be displayed with the port id

> sudo  kill -9 [PID]

kill the process that listens on this port id

run lsof agin

> sudo lsof -i 8000

Vola

+23
source

Ctrl + C mac php artisan laravel serve

+9

Windows php-artisan:

tasklist /FI "IMAGENAME eq php.exe"

:

Image Name ---- PID ---- Session Name ---- Session ---- Mem Usage

php.exe --------- XXXX ---- Console ----------  4 ------- 19.852 K

PID (XXXX) , :

taskkill /F /PID XXXX
+7

Windows 10 XAMPP , :

php artisan serve

Windows CMD: CTRL + C
XAMPP: CTRL + Pause/Break

Ubuntu RedHat/CentOS : CTRL + C

+4

Ctrl + Pause|Break Windows.

+3

cygwin php artisan serve Windows, ctrl + c . , @jsalonen. , :

enter image description here

0

VS Code, :

  1. VS Code
  2. Find the drop-down list with a list of all running shells
  3. Select "php" from the list and click the trash can icon

This removes the shell and kills the server.

0
source

Source: https://habr.com/ru/post/1542468/


All Articles