How to close the local Google App Engine developer server from the command line?

I started the local GAE application server ( dev_appserver.py ) from Eclipse and then Eclipse crashed. So I had to kill Eclipse and restart it. However, when Eclipse rebooted, it still lost the connection to the GAE server, and I cannot figure out how to disconnect it.

+6
source share
5 answers

You need to kill the devserver process. It depends on the OS. When using linux:

 ps aux| grep java kill -9 <process id> 

In windows you can use tasklist and taskkill .

+8
source

I found (one Windows XP) that if I started the local server using ant, and then tried to kill it with ^ C, it would not kill JAVA.EXE,

but when I start the server using a small batch file reading "% appEngine_home% \ bin \ dev_appserver.cmd war" when I press ^ C, it kills it.

+1
source

I know this too late, but only for future viewers of this issue, on Windows, you can press ctrl + c to terminate Dev App Server from the command line.

+1
source

On OSX, this can be achieved by explicitly naming the process and using killall in the terminal, for example:

 killall python /YOUR_PATH_TO_THE_SERVER_RUNTIME/dev_appserver.py 
0
source

open task manager. There will be a task (for me it is _go_app), and if you complete it, it will shut down the server by going to the URL and the answer will be "the server has suddenly stopped." See which Python applications are running, if you have a ton, each of which is a script running on the server, you can close them to access your shell, or you can try ctrl + \, which worked for me. enter image description here

0
source

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


All Articles