1.快速安裝
eazy_install fabric
#相關依賴:python-setuptools
#curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -o - | python
或
pip install fabric
#相關依賴:python-pip
#easy_install pip
2.源碼安裝:
依賴:
paramiko
pycrypto
ecdsa
python2.5-2.7
#################
fabric的基本操作:
fab [-H 主機ip] -f 指定執行檔案 執行檔案中的方法[:參數1,參數2...]
本文轉自 msj0905 51CTO部落格,原文連結:http://blog.51cto.com/sky66/1684900