<!-- CentOS7系统 -->
{#mysql#}
# 安装mysql5.6
https://blog.csdn.net/pengjunlee/article/details/81212250
systemctl start mysqld.service #启动 mysql
systemctl restart mysqld.service #重启 mysql
systemctl stop mysqld.service #停止 mysql
systemctl enable mysqld.service #设置 mysql 开机启动
{# python #}
# centos7安装python3.8.5
https://www.cnblogs.com/wulinn/p/13427112.html
# 安装虚拟环境
pip3 install virtualenv
# 创建虚拟环境
virtualenv env_django(创建虚拟环境)
在bin目录下,激活虚拟环境:source activate
退出虚拟环境:deactivate
# 生成当前环境的依赖包
pip freeze >requirements.txt
# 安装
pip install -r requirements.txt
# 创建缓存表
python manage.py createcachetable
# Linux(CentOS7)安装zip、unzip命令
yum install -y unzip zip
# 挂载服务进程
nohup python3 manage.py &
# 查看挂载的后台进程
ps -aux | grep "manage.py"
# 杀死进程
kill PID
{# Apache #}
# 安装Apache
https://www.cnblogs.com/wstong/p/12683740.html
{# uwsgi #}
# 启动
uWSGI 启动:
uwsgi --ini xxx.ini
uwsgi 重启:
uwsgi --reload xxx.pid
uwsgi 停止:
uwsgi --stop xxx.pid
# 查看进程
ps -ef | grep uwsgi
{# nginx #}
# 重启
service nginx restart
{# nginx+uwsgi部署django #}
https://www.cnblogs.com/wuyongcong/p/9534563.html
提交评论
您尚未登录,登陆之后方可评论 登录 or 注册