码迷,mamicode.com
首页 > 编程语言 > 详细

Centos7 django+uwsgi+nginx+python3.6.8部署

时间:2019-01-06 20:08:13      阅读:333      评论:0      收藏:0      [点我收藏+]

标签:pac   sgi   curses   djang   figure   arch   release   prefix   efi   

安装依赖

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make

下载python安装包

https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz

安装niginx yum源

rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

 

安装nginx

yum install -y nginx

开放80端口

firewall-cmd --zone=public --add-port=80/tcp --permanent

重启防火墙

firewall-cmd --reload

安装python

tar -zxvf Python-3.6.8.tgz

cd Python-3.6.8

./configure --prefix=/usr/local/python36 && make && make install

ln -s /usr/local/python36/bin/python3.6 /usr/bin/python3

ln -s /usr/local/python36/bin/pip3.6 /usr/bin/pip3

 

pip3 install virtualenv

ln -s /usr/local/python36/bin/virtualenv /usr/bin/virtualenv3

 

Centos7 django+uwsgi+nginx+python3.6.8部署

标签:pac   sgi   curses   djang   figure   arch   release   prefix   efi   

原文地址:https://www.cnblogs.com/ianduin/p/10229979.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!