使用rsync同步报错
使用指令rsync -avz --delete /var/www/html [email protected]::wwwroot --password-file=/etc/rsync.passwd
rsync: opendir "/html" (in wwwroot) failed: Permission denied (13)
rsync: recv_generator: failed to stat "/html/3.txt" (in wwwroot): Permission denied (13)
由于对方服务器没有关闭selinux 。要将 /etc/selinux/config 设置 selinux = disabled 即可解决改问题。
注:
只使用指令 rsync -avz --delete /var/www/html [email protected]::wwwroot 也是同理。