inotify slave部署  

   把master上指定文件下载到本地的主机指定目录

 yum install rsync –y
 [root@localhost ~]# useradd rsync -s /sbin/nologin -M
 [root@localhost ~]# mkdir -p /home/yxh/back
 [root@localhost ~]# chown rsync.rsync /home/yxh/back/

  echo rsync_backup:yxh >>/etc/rsync.password
   rsync_backup 为用户名
   yxh  为密码

[root@localhost ~]# chmod 600 /etc/rsync.password
[root@localhost ~]# rsync --daemon
[root@localhost ~]# ss -tunlp | grep rsync
tcp    LISTEN     0      5         *:873                   *:*                   users:(("rsync",pid=12133,fd=4))
tcp    LISTEN     0      5        :::873                  :::*                   users:(("rsync",pid=12133,fd=5))

重启rsync
[root@localhost back]# ps -ef | grep rsync
root      13472      1  0 20:10 ?        00:00:00 rsync --daemon
root      14185   9059  0 20:19 pts/1    00:00:00 grep --color=auto rsync
[root@localhost back]# kill -9 13472
[root@localhost back]# ps -ef | grep rsync
root      14253   9059  0 20:19 pts/1    00:00:00 grep --color=auto rsync
[root@localhost back]# rsync --daemon
failed to create pid file /var/run/rsyncd.pid: File exists
[root@localhost back]# rm -fr /var/run/rsyncd.pid
[root@localhost back]# ls
[root@localhost back]# rsync --daemon
安装流程

相关文章:

  • 2022-02-26
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
猜你喜欢
  • 2021-12-09
  • 2021-12-09
  • 2021-11-02
  • 2021-08-23
相关资源
相似解决方案