天天看点

fabric安装相关

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