标签: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