sersync实时同步操作记录(仅供自己参考所用)
来源:互联网 发布:艾媒大数据 编辑:程序博客网 时间:2024/06/11 13:54
sersync实时同步操作记录(仅供自己参考所用)
cp sersync_installdir.tar.gz /usr/local/
cp sersync_tools.tar.gz /usr/local/
cd /usr/local
tar -xf sersync_installdir.tar.gz
cat /etc/exports
#shared data for nfs-mywebserver by dexter-wang at 20170301
/data 10.1.0.0/16(rw,anonuid=65534,anongid=65534,sync)
/www 10.1.0.0/16(rw,sync)
# vim /usr/local/sersync/conf/confxml.xml
<sersync>
<localpath watch="/www">
<remote ip="10.1.41.71" name="www"/>
</localpath>
<!-- ################################### -->
<rsync>
<commonParams params="-aruz"/>
<auth start="true" users="admin" passwordfile="/etc/rsyncd.password"/>
<userDefinedPort start="false" port="874"/><!-- port=874 -->
<timeout start="true" time="100"/><!-- timeout=100 -->
<ssh start="false"/>
</rsync>
echo 'export PATH=$PATH:/usr/local/sersync/bin' >> /etc/profile
tail -1 /etc/profile
source /etc/profile
which serync
sersync -r -d -o /usr/local/sersync/conf/confxml.xml
cp sersync_installdir.tar.gz /usr/local/
cp sersync_tools.tar.gz /usr/local/
cd /usr/local
tar -xf sersync_installdir.tar.gz
cat /etc/exports
#shared data for nfs-mywebserver by dexter-wang at 20170301
/data 10.1.0.0/16(rw,anonuid=65534,anongid=65534,sync)
/www 10.1.0.0/16(rw,sync)
# vim /usr/local/sersync/conf/confxml.xml
<sersync>
<localpath watch="/www">
<remote ip="10.1.41.71" name="www"/>
</localpath>
<!-- ################################### -->
<rsync>
<commonParams params="-aruz"/>
<auth start="true" users="admin" passwordfile="/etc/rsyncd.password"/>
<userDefinedPort start="false" port="874"/><!-- port=874 -->
<timeout start="true" time="100"/><!-- timeout=100 -->
<ssh start="false"/>
</rsync>
echo 'export PATH=$PATH:/usr/local/sersync/bin' >> /etc/profile
tail -1 /etc/profile
source /etc/profile
which serync
sersync -r -d -o /usr/local/sersync/conf/confxml.xml
0 0
- sersync实时同步操作记录(仅供自己参考所用)
- mysql参考(仅供自己参考)
- 企业级rsync同步:sersync多目录实时步操作记录
- maven学习(仅供自己参考)
- gsoap编译(仅供自己参考)
- 仅供自己记录
- Struts标签库(仅供自己参考)
- 多并发条件依赖执行 (仅供自己参考)
- 开始学习Matlab,一点一滴记录自己的所学 仅供自己参考Matlab(2)
- log4j学习_仅供自己参考
- urlrewrite学习_仅供自己参考
- proxool学习_仅供自己参考
- hadoop个人笔记,仅供自己参考
- 仅供自己参考第三方登录
- Rsync+Sersync实时同步
- vs2003快捷键(仅供自己学习记录使用)
- 开始学习Matlab,一点一滴记录自己的所学 仅供个人参考Matlab(1)
- BM25算法 仅供自己记录学习
- MySQL相关问题汇总
- Struts2之Result详解
- UVA-12096 The SetStack Computer
- .gitignore详解
- curl get&post
- sersync实时同步操作记录(仅供自己参考所用)
- shape与seletor状态选择器
- Java引用
- CodeForces 768A Oath of the Night's Watch【水题】
- MVC 设计模式
- 查看apk 签名 + 查看keystore的sha1和md5
- FreeRTOS STM32移植笔记
- 如何理解父类引用指向子类对象
- tensorflow 实现卷及神经网络(5.2)