当使用“python manage.py runserver”时,是否有一种方法可以在其中一个Django脚本中将CTRL + BREAK退出命令更改为其他命令?
你可以使用ps和grep来找到这个过程:
ps
grep
ps aux | grep runserver
然后杀死它:
kill the_pid
我的意思是你可以将它写入shell脚本,然后调用它。