sersync設定多台機器檔案的同步

來源:互聯網
上載者:User


sersync設定多台機器檔案的同步 [html] 首頁在其中一台 192.168.0.1 上安裝sersync直接從網上找到源碼解壓即可,解壓後目錄為: /home/GNU-Linux-x86/進行配製confxml.xml watch 為需要同步的檔案路徑 mode_name 為同步伺服器 2 的rsync 守護進程中配製檔案的 mode名稱,以下會涉及到[html] 主要修改以下地方,  www.2cto.com  [html] <localpath watch="/home/dev/beta5">              <remote ip="192.168.0.2" name="mode_name"/>              <!--<remote ip="192.168.8.39" name="tongbu"/>-->              <!--<remote ip="192.168.8.40" name="tongbu"/>-->          </localpath>   其它地方可以根據需要進行設定在192.168.0.2伺服器設定 rsync 為 linux系統內建命令增加 /etc/rsyncd.conf 配製檔案[html] strict modes= no  #check passwd file  port= 873 #default port  max connections= 4  [mode_name]  www.2cto.com  uid= root  gid= root  path=/home/www/  read only= no  host allow= 192.168.0.1   到此兩台伺服器同步配製完成開啟0.2的 守護進程 rsync --daemon啟動伺服器端命令:/home/GNU-Linux-x86/sersync2 -r -d -n 4 -o /home/GNU-Linux-x86/confxml.xml

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.