Commit ae3f8ff1 authored by wojiushixiaobai's avatar wojiushixiaobai

更新文档

parent adc9abed
...@@ -63,10 +63,8 @@ CentOS 7 安装文档 ...@@ -63,10 +63,8 @@ CentOS 7 安装文档
$ yum -y install nginx $ yum -y install nginx
$ systemctl enable nginx $ systemctl enable nginx
# 下载编译 Python3.6.1 # 安装 Python3.6
$ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz $ yum -y install python36 python3-devel
$ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1
$ ./configure && make && make install
# 配置并载入 Python3 虚拟环境 # 配置并载入 Python3 虚拟环境
$ cd /opt $ cd /opt
......
...@@ -30,13 +30,13 @@ ...@@ -30,13 +30,13 @@
$ apt-get install language-pack-zh-hans $ apt-get install language-pack-zh-hans
$ echo 'LANG="zh_CN.UTF-8"' > /etc/default/locale $ echo 'LANG="zh_CN.UTF-8"' > /etc/default/locale
**1.2 编译安装** **1.2 安装 Python3.6**
:: ::
$ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz $ add-apt-repository ppa:jonathonf/python-3.6 -y
$ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 $ apt-get update
$ ./configure && make && make install $ apt-get -y install python3.6 python3.6-dev python3.6-venv
**1.3 建立 Python 虚拟环境** **1.3 建立 Python 虚拟环境**
......
...@@ -48,17 +48,11 @@ ...@@ -48,17 +48,11 @@
$ yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git $ yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git
Yum 加速设置请参考 <http://mirrors.163.com/.help/centos.html> **1.2 安装 Python3.6**
**1.2 编译安装**
:: ::
$ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz $ yum -y install python36 python3-devel
$ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1
$ ./configure && make && make install
# 这里必须执行编译安装,否则在安装 Python 库依赖时会有麻烦...
**1.3 建立 Python 虚拟环境** **1.3 建立 Python 虚拟环境**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment