【服务器部署工具】Python Deploy工具Fabric在管理很多很多服务器的时候,有时会有这样的需求:从本地向某些服
【服务器部署工具】Python Deploy工具Fabric
在管理很多很多服务器的时候,有时会有这样的需求:
从本地向某些服务器上传、从server下载数据到本地、获取某个命令在某些server上的执行结果。Python的小工具fabric就是解决这样的需求。
?
?
?
sudo apt-get install python-dev(安装Python头文件)
?
python-setuptools (安装easy_install)
?
sudo apt-get install fabric
?
?
以下以几个例子说明。
?
