Python安装
Centos安装Python环境
首先使用yum下载wget
yum -y install wget
使用wget下载Python的压缩包
wget 连接
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
然后解压文件
tar zxf Python-3.8.0.tgz
然后创建一个目录存放python3,我选用/usr/local/python3
mkdir -p /usr/local/python3mv Python-3.8.0.tgz /usr/local/python3cd /usr/local/python3# 解压tar -zxvf Python-3.8.0.tgz
编译安装所需环境
yum -y install gccyum -y install zlib*yum install readline-devel
修改配置
cd Python-3.8.0./configure --prefix=/usr/local/python3
编译安装 ...
Centos Python安装
centos安装docker查看自己的内核版本
uname -r# 3.10.0-1160.99.1.el7.x86_64
docker要求当前centos内核版本高于3.10
如果有docker,则先卸载docker
sudo yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-selinux \docker-engine-selinux \docker-engine
安装必要系统工具
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
换源
yum-config-manager --add-repo http://download.docker.com/linux/centos/docker-ce.repo(中央仓库)yum-config-manager --add-repo ...