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