环境准备
下载安装包
下载 clustershell-1.7.3.tar.gz 和 setuptools-1.1.6.tar.gz
网盘地址:https://pan.baidu.com/s/1x105a1cj0qTOkxRXs-oyjw
安装Python
Python安装:https://blog.csdn.net/pengjunlee/article/details/89100730
安装Setuptools
# 将 setuptools 解压至 /usr/local/ 目录
[root@localhost src]# tar -zxvf setuptools-1.1.6.tar.gz -C /usr/local/
# 切换至解压目录
[root@localhost src]# cd /usr/local/setuptools-1.1.6/
# 构建
[root@localhost setuptools-1.1.6]# python setup.py build
# 安装
[root@localhost setuptools-1.1.6]# python setup.py install
# 出现如下内容表示安装完成
...
Installed /usr/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg
Processing dependencies for setuptools==1.1.6
Finished processing dependencies for setuptools==1.1.6
安装Clustershell
# 解压 clustershell 安装包到 /usr/local/
[root@localhost src]# tar -zxvf clustershell-1.7.3.tar.gz -C /usr/local/
# 进入解压目录
[root@localhost src]# cd /usr/local/clustershell-1.7.3/
# 在 etc 下创建 clustershell 目录
[root@localhost clustershell-1.7.3]# mkdir /etc/clustershell
# 执行构建和安装
[root@localhost clustershell-1.7.3]# python setup.py build
[root@localhost clustershell-1.7.3]# python setup.py install
# 出现如下内容,即表示安装完成
...
Using /usr/lib/python2.7/site-packages/PyYAML-5.3b1-py2.7-linux-x86_64.egg
Finished processing dependencies for ClusterShell==1.7.3
[root@localhost clustershell-1.7.3]# which clush
/usr/bin/clush