33 lines
916 B
Plaintext
33 lines
916 B
Plaintext
|
|
停服务
|
|||
|
|
service nginx stop
|
|||
|
|
killall -s INT /data/www/python3_vir/bin/uwsgi
|
|||
|
|
开服务
|
|||
|
|
source /data/www/python3_vir/bin/activate
|
|||
|
|
cd /data/www/python3_vir
|
|||
|
|
source bin/activate
|
|||
|
|
cd /data/www/order
|
|||
|
|
export ops_config=production&&python manager.py runserver
|
|||
|
|
uwsgi --ini uwsgi.ini
|
|||
|
|
cd /data/www/logs
|
|||
|
|
tail -f order.log (查看服务启起来了)
|
|||
|
|
ps -ef |grep uwsgi(查看多进程)
|
|||
|
|
|
|||
|
|
cd /etc/nginx/conf.d
|
|||
|
|
service nginx start
|
|||
|
|
ps -ef |grep nginx(查看ng启动起来了)
|
|||
|
|
service nginx reload
|
|||
|
|
|
|||
|
|
https://python815.cn/user/login
|
|||
|
|
http://python815.cn/user/login
|
|||
|
|
https://www.python815.cn/user/login
|
|||
|
|
http://www.python815.cn/user/login
|
|||
|
|
http://106.52.204.179/user/login
|
|||
|
|
账号:54php.cn 密码123456789
|
|||
|
|
账号:吃货:密码:123456
|
|||
|
|
账号:54php.cn2 密码:123456
|
|||
|
|
账号:猪猪侠2 密码:123456789
|
|||
|
|
卸载mysql
|
|||
|
|
https://blog.csdn.net/li_wei_quan/article/details/78549891
|
|||
|
|
|
|||
|
|
线上测试api
|
|||
|
|
http://106.52.204.179/api/food/index
|