如果沒有關閉 SELinux
ssh 使用 rsa 登入時會遇到錯誤,
上傳 key 後時要記得更新資料夾權限
restorecon -Rv /folder
就可以正常使用了
[Solve] rsync Argument list too long
因為 UNIX 有限制 ARG_MAX 大小
資料夾底下檔案太多就會出現 Argument list too long
rsync 也一樣, 所以先使用 rsync -n 來跑一次資料夾要同步的檔案, 這裡就不用下星號, 但要注意資料夾 [來源] [目的地] 的位置, 寫錯就會傳錯層級
1. use rsync dry run
rsync -n source/path desc
2. rsync source/path desc
參考文章:
https://hugepang.wordpress.com/2011/06/08/solution-bash-usrlocalbinrsync-argument-list-too-long/
http://blog.xuite.net/jyoutw/xtech/20025390-rsync%E5%8F%83%E6%95%B8%E8%A9%B3%E8%A7%A3--990209
資料夾底下檔案太多就會出現 Argument list too long
rsync 也一樣, 所以先使用 rsync -n 來跑一次資料夾要同步的檔案, 這裡就不用下星號, 但要注意資料夾 [來源] [目的地] 的位置, 寫錯就會傳錯層級
1. use rsync dry run
rsync -n source/path desc
2. rsync source/path desc
參考文章:
https://hugepang.wordpress.com/2011/06/08/solution-bash-usrlocalbinrsync-argument-list-too-long/
http://blog.xuite.net/jyoutw/xtech/20025390-rsync%E5%8F%83%E6%95%B8%E8%A9%B3%E8%A7%A3--990209
SSH With key login Failure
假如 .ssh, authorized_keys 權限正確,
但還是無法使用 ssh key 登入
請嘗試在 server 端下以下指令修正資料目錄位置
在重新測試是否可順利連結
CentOS set timezone
https://www.liberiangeek.net/2014/09/configure-server-timezone-centos-7/
http://www.stdtime.gov.tw/chinese/bulletin/NTP%20promo.txt
UNIX 校時指令
# yum install ntpdate # ntpdate tock.stdtime.gov.tw
http://www.stdtime.gov.tw/chinese/bulletin/NTP%20promo.txt
UNIX 校時指令
# yum install ntpdate # ntpdate tock.stdtime.gov.tw
訂閱:
文章 (Atom)