摘要: #!/usr/bin/python # -*- coding: utf-8 -* from fabric.api import * from fabric.contrib.files import * ## 需要注意的是,这里的host strings必须由username@host:port三部分构成,缺一不可,否则运行时还是会要求输入密码 env.hosts = [ 'root@2... 阅读全文
posted @ 2017-08-11 12:52 明天OoO你好 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 1、先cd到根目录,执行git config --global credential.helper store命令 [root@iZ25mi9h7ayZ ~]# git config --global credential.helper store 2、执行之后会在.gitconfig文件中多加红色 阅读全文
posted @ 2017-08-11 09:50 明天OoO你好 阅读(625) 评论(0) 推荐(0) 编辑
摘要: fab -f test_fabric.py start --hide status,running,stdout,user,aborts,warnings,stderr 省略所有输出--hide stdout 省略脚本原本打印在屏幕上的内容,比如ls,echo的内容,都不会输出--hide runn 阅读全文
posted @ 2017-08-11 09:37 明天OoO你好 阅读(708) 评论(0) 推荐(0) 编辑