Django 常用命令

查看log
tail -f /var/log/django/*

杀死进程

1
2
killall -9 python 
kill -9 pid(进程号)

查看当前运行

1
ps auxw | grep runserver

mysql的状态

1
service mysqld status

关闭 nginx 的自启动

1
chkconfig mysqld/nginx/gunicorn  on