CentOS7安装python3环境&go环境[笔记]
CentOS7.4安装python3环境 (Python 3.8.1) (stable version, Dec.18, 2019)
# 1.从官网下载Python 3.8.1 - Dec. 18, 2019 [stable version] [root@VM_235_47_centos ~]# wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz # 2.解压至/usr/local [root@VM_235_47_centos ~]# tar -xvf Python-3.8.1.tgz -C /usr/local # 3.生成Makefile [root@VM_235_47_centos ~]# cd /usr/local/Python-3.8.1 [root@VM_235_47_centos Python-3.8.1]# ./configure # 4.编译解压 [root@VM_235_47_centos Python-3.8.1]# make -j 8 && make install # 5.验证下是否安装成功 [root@VM_235_47_centos Python-3.8.1]# python3 --version Python 3.8.1
go语言环境安装
# install go [root@localhost ~]# wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz # tar [root@localhost ~]# tar -C /usr/local -xzf go1.14.1.linux-amd64.tar.gz # export env [root@localhost ~]# export PATH=$PATH:/usr/local/go/bin [root@localhost ~]# source /etc/profile