python2 &&pssh 安裝

MhaiM發表於2024-06-15

#python2安裝
#安裝依賴包
yum install gcc openssl-devel bzip2-devel make -y
#下載原始碼安裝包
wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
#解壓編譯安裝
tar -zxvf Python-2.7.15.tgz && cd Python-2.7.15 && ./configure --prefix=/usr/local/sbin --enable-optimizations && make && make altinstall
cp -a /home/Python-2.7.15/python /usr/local/sbin/python
#檢視版本
python -V
#pssh 安裝
tar -xvf pssh-2.3.1.tar.gz
python setup.py install
cp -a /usr/local/sbin/bin/pscp /usr/local/bin/pscp

相關文章