Fabric Installation Learning Tutorial

Source: Internet
Author: User

fabric is a python library that fabric can manage servers in bulk via SSH. in the Learning Fabricbefore, installing fabric was our first step. How to install it?

The first step installs the dependency package

installing the Epel source

Install fabric dependency and Pip

second step to install fabric

Third Step test installation and simple use

Test whether the installation was successful

Show Release Notes installation successful

Simple to use

writing Fabfile;

Vim host_type.py


use fab to perform the host_type that you just defined

The simple installation and use of the fabric ends here

The good thing about fabric is that you can write fabfiles reuse.

The third step may be an error:

' Module ' object has no attribute ' have_decl_mpz_powm_sec '

Solve:

Find/usr/lib/python2.7/site-packages/crypto/util/number.py (Find/-name number.py)

put If _fastmath is isn't None and not _fastmath. Have_decl_mpz_powm_sec:

Commented on

#if _fastmath is not None and not _fastmath. Have_decl_mpz_powm_sec:

)

article from: Blog Park /hdfs

Fabric Installation Learning Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.