安装组件:
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
yum install gcc -y
安装python3:
mkdir /usr/local/python3
cd /usr/local/
wget https://www.python.org/ftp/python/3.6.13/Python-3.6.13.tgz
tar -xvf Python-3.6.13.tgz
cd ./Python-3.6.13/
./configure --prefix=/usr/local/python3
make&&make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
安装pip3
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6/
python3 setup.py build
python3 setup.py install
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
pip3 install --upgrade pip
python3 -m pip install paramiko
安装LVS库
pip3 install jinja2
pip3 install ConfigParser
pip3 install PyMySQL
pip3 install objgraph
pip3 install dbutils