liulinhai@iZwz9d8rsaytq09mtb94daZ:/root$ ps aux | grep uwsgi
liulinh+ 8023 0.0 0.0 34692 668 ? S 2017 1:06 uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data
liulinh+ 8024 0.0 2.2 99624 23052 ? S 2017 1:45 /usr/local/bin/uwsgi --ini blogproject.ini
liulinh+ 8031 0.0 4.5 137840 45868 ? S 2017 0:52 /usr/local/bin/uwsgi --ini blogproject.ini
liulinh+ 8032 0.0 4.3 137212 43872 ? S 2017 0:26 /usr/local/bin/uwsgi --ini blogproject.ini
liulinh+ 8033 0.0 3.5 122264 35780 ? S 2017 0:01 /usr/local/bin/uwsgi --ini blogproject.ini
liulinh+ 8034 0.0 3.5 121988 36048 ? S 2017 0:00 /usr/local/bin/uwsgi --ini blogproject.ini
liulinh+ 22370 0.0 0.0 14224 992 pts/1 S+ 16:43 0:00 grep --color=auto uwsgi
liulinhai@iZwz9d8rsaytq09mtb94daZ:/root$ lsof -i :3400
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
uwsgi 8024 liulinhai 3u IPv4 85612 0t0 TCP localhost:3400 (LISTEN)
uwsgi 8031 liulinhai 3u IPv4 85612 0t0 TCP localhost:3400 (LISTEN)
uwsgi 8032 liulinhai 3u IPv4 85612 0t0 TCP localhost:3400 (LISTEN)
uwsgi 8033 liulinhai 3u IPv4 85612 0t0 TCP localhost:3400 (LISTEN)
uwsgi 8034 liulinhai 3u IPv4 85612 0t0 TCP localhost:3400 (LISTEN)
liulinhai@iZwz9d8rsaytq09mtb94daZ:/root$ sudo kill -9 8024
[sudo] password for liulinhai:
liulinhai@iZwz9d8rsaytq09mtb94daZ:/root$ lsof -i :3400
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
uwsgi 22377 liulinhai 3u IPv4 580747 0t0 TCP localhost:3400 (LISTEN)
uwsgi 22379 liulinhai 3u IPv4 580747 0t0 TCP localhost:3400 (LISTEN)
uwsgi 22380 liulinhai 3u IPv4 580747 0t0 TCP localhost:3400 (LISTEN)
uwsgi 22381 liulinhai 3u IPv4 580747 0t0 TCP localhost:3400 (LISTEN)
uwsgi 22382 liulinhai 3u IPv4 580747 0t0 TCP localhost:3400 (LISTEN)
liulinhai@iZwz9d8rsaytq09mtb94daZ:~$ cd ~
liulinhai@iZwz9d8rsaytq09mtb94daZ:~$ ls
blog_env blogproject zhonghaitec
liulinhai@iZwz9d8rsaytq09mtb94daZ:~$ cd blog_env
liulinhai@iZwz9d8rsaytq09mtb94daZ:~/blog_env$ ls
bin include lib pip-selfcheck.json
liulinhai@iZwz9d8rsaytq09mtb94daZ:~/blog_env$ source /home/liulinhai/blog_env/bin/activate
(blog_env) liulinhai@iZwz9d8rsaytq09mtb94daZ:~$ cd blogproject
(blog_env) liulinhai@iZwz9d8rsaytq09mtb94daZ:~/blogproject$ python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
January 24, 2018 - 16:51:17
Django version 1.10.6, using settings 'blogproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
(blog_env) liulinhai@iZwz9d8rsaytq09mtb94daZ:~/blogproject$ python -m py_compile /home/liulinhai/blog_env/lib/python3.5/site-packages/qiniustorage/backends.py
Last Modified·2018年1月24日 17:54
您尚未登录,请先登录才能评论。