028-86261949

当前位置:首页 > 技术交流 > Centos 6.9下安装高版本php环境

Centos 6.9下安装高版本php环境

2018/12/03 14:24 分类: 技术交流 浏览:0

1. 检测当前Python版本
2. 安装依赖包
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
 
3. 下载Python3.6.2
4. 创建一个空目录用来安装python3
mkdir /usr/local/python3
5. 解压压缩包,进入该目录,安装Python3
tar -xvf  Python-3.6.2.tar.xz
cd Python-3.6.2
./configure --prefix=/usr/local/python3
make && make install
 
6. 创建软链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
7. 测试
8. 最后安装ipython
#标签:源码时代,重庆PHP培训,PHP培训,重庆IT培训,源码时代重庆校区,IT培训,PHP,重庆PHP,Centos 6.9