在给公司或者学校做系统部署的时候,为了数据安全往往我们至少需要两台服务器,接下来请看: 我们要实现的是把客户端(192.168.0.1)的复制到目标服务器(192.168.0.2) 一.目标服务器 1.安装rsync yum -y install xinetd rsync 2.修改配置 vi /etc/xinetd.d/rsync,将yes改成no # default: off # description: The rsync server is a good addition to an ft
Windows Linux 之间rsync同步CODE文件 一.环境Windows:OS:Microsoft Windows Web Server 2008 SP1IP:192.168.88.197 Linux:OS:CentOS release 6.4 (Final)IP:192.168.88.238 二. Windows 下安装服务端软件并配置1.cwRsyncServer(安装过程略),注意安装过程会创建一个启动服务的用户启动cwsyncservices.msc-找到RsyncServer
1.截取linux文件存储路径方法 package com.tydic.eshop.action.freemarker; public class dddd { public static void main(String[] args) { String strParentUrl = "/home/tomcat7/ecp/t8086/webapps/ecp/FreeMarker/1463766670142/error/html/index.html"; String[] s = st