1. 安装依赖包
sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install -y python-devel
sudo yum install -y gcc
sudo yum install -y wget
sudo yum install -y python-pip
2. 安装fabric
sudo pip install fabric
3. 验证
python -c "from fabric.api import * ; print env.version"
输出版本信息则安装成功。