Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482215
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: 系统运维

2014-05-13 21:31:02

用fab部署业务或者执行函数的时候
如果自己设定env.passwords 那么需要按照文档说明上写的。
如下

Hosts

Hosts, in this context, refer to what are also called “host strings”: Python strings specifying a username, hostname and port combination, in the form of username@hostname:port. User and/or port (and the associated @ or :) may be omitted, and will be filled by the executing user’s local username, and/or port 22, respectively. Thus, admin@foo.com:222deploy@website andnameserver1 could all be valid host strings.

IPv6 address notation is also supported, for example ::1[::1]:1222user@2001:db8::1 oruser@[2001:db8::1]:1222. Square brackets are necessary only to separate the address from the port number. If no port number is used, the brackets are optional. Also if host string is specified via command-line argument, it may be necessary to escape brackets in some shells.

阅读(1792) | 评论(0) | 转发(0) |
0

上一篇:linux sudo

下一篇:syslog-ng的host配置项

给主人留下些什么吧!~~