Flask + Gunicorn + Nginx

 

一、安装python3.6

1. 安装依赖环境

yum install openssl

yum install openssl-devel

yum install gcc

yum -y install zlib*

2.下载Python3

  https://www.python.org/downloads/

 wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz

 

3.安装python3

我安装在/usr/local/python3(具体安装位置看个人喜好)
创建目录:

mkdir -p /usr/local/python3

解压:

tar -zxvf Python-3.6.1.tgz

4.进入解压后的目录,编译安装。

 
cd Python-3.6.1

./configure --prefix=/usr/local/python3

make

make install

5.建立python3的软链

ln -s /usr/local/python3/bin/python3 /usr/bin/python3

6.并将/usr/local/python3/bin加入PATH

 <

你可能感兴趣的:(Flask,+,Gunicorn,+,Nginx,Python,flask,flask)