Skip to content

Instantly share code, notes, and snippets.

@xayyuu
Created July 9, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xayyuu/916801d427de8945345c053eb6e585e4 to your computer and use it in GitHub Desktop.
Save xayyuu/916801d427de8945345c053eb6e585e4 to your computer and use it in GitHub Desktop.
第一个fabric问题
刚刚接触fabric,使用pip install fabric之后,然后执行hello world示例,却出现 No idea what 'hello' is!
通过pip install fabric3 可解决。
@xayyuu
Copy link
Author

xayyuu commented Jul 9, 2018

Fabric3是一个用来简化SSH使用的Python库和命令行工具,它支持Python2.7和Python3.4+,你可以用它自动化完成应用部署或者其他系统管理任务。这是原Fabric项目的一个Fork分支,并增加了Python3的支持,同时没有破坏Python2.7的支持。下面我们会介绍这个项目和原Fabric项目的区别。

@xayyuu
Copy link
Author

xayyuu commented Jul 28, 2018

突然发觉,fabric可以做的事情,ansible都可以做,而ansible是声明式语言,并提供了接口,从使用方便程度来收,声明式语言好于命令式的。
所以暂时放弃对fabric的学习和记录了。先钻研一下ansible。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment