首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Rsync完全配置

系统环境---Rsync完全配置 rsync version 2.6.3 protocol version 28 Slackware 9.2 配置/etc/rsyncd.conf 如果没有创建rsyncd.conf文档,自己需要创建rsyncd.conf文档(下面其实配置相同) [root@linuxas3 root]# vi /etc/rsyncd.conf uid=nobody gid=nobody max connections=4 use chroot=no log file=/var/log/rsyncd.log pid file=/var/run/rsyncd.pid lock file=/var/run/rsyncd.lock #auth users=root secrets file=/etc/rsyncd.secrets [postfix] path=/var/mail comment = backup mail ignore errors read only = yes list = no auth users = postfix [netkiller] path=/home/netkiller/web comment = backup 9812.net ignore errors read only = yes list = no auth users = netkiller [pgsqldb] path=/var/lib/pgsql comment = backup postgresql database ignore errors read only = yes list = no 选择说明 uid = nobody gid = nobody use chroot = no # 不使用chroot max connections = 4 # 最大连接数为4 pid file = /var/run/rsyncd.pid #进程ID文件 lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log # 日志记录文件 secrets file = /etc/rsyncd.pwd # 认证文件名,主要保存用户密码,权限建议设为600,所有者root [module] # 这里是认证的模块名,在client端需要指定 path = /var/mail # 需要做镜像的目录 comment = backup xxxx # 注释 ignore errors # 可以忽略一些无关的IO错误 read only = yes # 只读 list = no # 不允许列文件 auth users = postfix # 认证的用户名,如果没有这行,则表明是匿名 [other] path = /path/to... comment = xxxxx 密码文件A,(被认证的用户,就是本地与要其它地同上时,需要的认证用户) 在server端生成一个密码文件/etc/rsyncd.pwd [root@linuxas3 root]# echo postfix:xxx >>/etc/rsync_passwd [root@linuxas3 root]# chmod 600 /etc/rsync_passwd 密码文件B,(为远程用户的认证:就是其它需要与本地同步时,远程PC在执行同步时所需要的帐号) 在server端生成一个密码文件/etc/rsyncd.secrets [root@linuxas3 root]# echo postfix:xxx >>/etc/rsyncd.secrets

03

Linux系统:第六章:Linux服务

1.创建简单的Linux脚本文件并执行 ①新建文本文件 vim invoke.sh ②加入几条简单的Linux命令,例如: ifconfig ll ③保存退出:wq ④修改文件权限信息 chmod 755 invoke.sh ⑤执行 ./invoke.sh ※为什么要带“./”? 因为前面什么都没有的话Linux会当作一个命令,但是又找不到对应的命令文件,所以无法执行。代码“./”之后Linux就知道这是一个路径,不会当作命令处理。 2.在CentOS7中将防火墙关闭并设置为开机不自动启动 systemctl stop firewalld.service systemctl disable firewalld.service 3.解压并配置JDK 第一步:解压JDK tar -zxvf /opt/jdk-8u121-linux-x64.tar.gz 第二步:编辑/etc/profile文件配置环境变量 cp /etc/profile /etc/profile.bak vim /etc/profile 第三步:配置JAVA_HOME和PATH 在/etc/profile文件末尾加入 JAVA_HOME=/opt/jdk1.8.0_121 PATH=J A V A H O M E / b i n : JAVA_HOME/bin:JAVAH​OME/bin:PATH export JAVA_HOME PATH 第四步:使配置文件生效 source /etc/profile 或 reboot 第五步:验证 echo $PATH echo $JAVA_HOME java -version 4.解压并启动Tomcat 解压:tar -zxvf /opt/apache-tomcat-7.0.75.tar.gz 启动:/opt/apache-tomcat-7.0.75/bin/startup.sh 设置防火墙 5.MySQL安装 rpm -e --nodeps mariadb-libs-1:5.5.56-2.el7.x86_64 rpm -ivh /opt/MySQL-server-5.5.52-1.el6.x86_64.rpm rpm -ivh /opt/MySQL-client-5.5.52-1.el6.x86_64.rpm systemctl start mysql.service

03
领券