使用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 也是同理。