53

批量同步代码:有3台服务器(A,B,C)做负载均衡,由于规模太小目前并未使用专业的自...

 6 years ago
source link: http://blog.51cto.com/12129628/2071195
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
需求背景是:一个业务,有3台服务器(A,B,C)做负载均衡,由于规模太小目前并未使用专业的自动化运维工具。有新的需求时,开发同事改完代码会把变更上传到其中一台服务器A上。但是其他2台服务器也需要做相同变更。写一个shell脚本,把A服务器上的变更代码同步到B和C上。其中,你需要考虑到不需要同步的目录(假如有tmp、upload、logs、caches)#!/bin/bashecho &

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK