有这样的场景:
A、B两台nginx服务器,通过LB向外界提供资源,资源的增删改查都在服务器A上进行操作,B服务器的资源随时与A保持同步
解决方案:Lsyncd
操作步骤:
1 按照digitalocean上的教程 搭建环境
2 调试
参考资料:
https://www.digitalocean.com/community/tutorials/how-to-mirror-local-and-remote-directories-on-a-vps-with-lsyncd
有这样的场景:
A、B两台nginx服务器,通过LB向外界提供资源,资源的增删改查都在服务器A上进行操作,B服务器的资源随时与A保持同步
解决方案:Lsyncd
操作步骤:
1 按照digitalocean上的教程 搭建环境
2 调试
参考资料:
https://www.digitalocean.com/community/tutorials/how-to-mirror-local-and-remote-directories-on-a-vps-with-lsyncd