centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课...
centos linux 系統日常管理4 ?scp,rsync,md5sum,sha1sum,strace ,find Rsync 常見錯誤及解決方法 ?第十七節課
?
?
rsync可以增量同步,scp不行
注意:修改sshd_config文件時候,port字段,sshd不支持監聽小于1024 ,1~1023不允許自定義(保留端口)
注意:scp和rsync都可以用密鑰登錄,避免輸入密碼,關閉selinux
注意:當目標文件存在的情況下,scp跟rsync都會支持覆蓋目標文件,不會詢問,而第一次scp或rsync的時候都會詢問你是否保存scp或rsync密碼
注意:rsync不能自己創建目錄,需要預先創建好目錄,否則報錯
?
rsync順序和scp順序如果覺得難記可以這樣,右邊永遠都是目標,只是遠程目標還是本地目標,左邊用于都是源,只是遠程源還是本地源
scp 源 目標 rsync 源 目標?
?
可以保留屬主 屬組權限:rsync -a ,cp -p
不可以保留屬主 屬組權限:scp -p
?
上半節課
scp
?
?
下半節課
rsync
md5sum
sha1sum
strace
find
?
?
?
?
?
?
scp ?(有流量控制、有傳輸加密、有傳輸壓縮)
1、不加任何用戶名,則默認以root用戶連接
2、兩邊都需要安裝openssh-clients包,ssh,scp,rsync都要安裝這個包:?yum install -y openssh-clients?
3、兩邊都盡量寫絕對路徑
scp a/a.txt a/b.txt a/c.txt B: 會把a.txt b.txt c.txt 也拷貝過去,而不是只拷貝c.txt這個文件 ,要加a/目錄才能拷貝多個文件,不加a/目錄只能拷a.txt這個文件: scp a.txt b.txt c.txt B:
?
選項
-p 和cp一樣,保留原文件的修改時間,訪問時間和訪問權限,不會保留屬主和屬組,scp沒有rsync的-g 所屬組,-o 所屬主選項
-r 和cp一樣,遞歸復制整個目錄
-1 強制scp命令使用協議ssh1
-2 強制scp命令使用協議ssh2
-4 強制scp命令只使用IPv4尋址
-6 強制scp命令只使用IPv6尋址
-B 使用批處理模式(傳輸過程中不詢問傳輸口令或短語)
-C 允許壓縮。(compression 將-C標志傳遞給ssh,從而打開壓縮功能)
-q 不顯示傳輸進度條。
-v 詳細方式顯示輸出。scp和ssh(1)會顯示出整個過程的調試信息。這些信息用于調試連接,驗證和配置問題。
-c cipher 以cipher將數據傳輸進行加密,這個選項將直接傳遞給ssh。
-F ssh_config 指定一個替代的ssh配置文件,此參數直接傳遞給ssh。
-i identity_file 從指定文件中讀取傳輸時使用的密鑰文件,此參數直接傳遞給ssh。
-l limit 限定用戶所能使用的帶寬,以Kbit/s為單位。
-o ssh_option 如果習慣于使用ssh_config(5)中的參數傳遞方式,
-P port 注意是大寫的P, port是指定數據傳輸用到的端口號
-S program 指定加密傳輸時所使用的程序。此程序必須能夠理解ssh(1)的選項。
?
a目錄下的文件拷到b目錄下:?scp -r a/ 192.168.1.12:/tmp/b/?
拷貝目錄包括a:?scp -r a 192.168.1.12:/tmp/b?
遠程到本地 :?scp -p -P 22 root@127.0.0.1:/tmp/123.txt /root/123/2.txt?
?
示例
目錄到目錄
/root/123/目錄下的文件復制到/tmp/123/目錄并保留權限 ,/tmp/123/目錄不需要預先創建:?scp -r -p /root/123/ root@127.0.0.1:/tmp/123 ?
目錄到目錄下
/root/123/目錄下的文件復制到/tmp/123/目錄并保留權限并壓縮:?scp -C -r -p /root/123/ root@127.0.0.1:/tmp/123/ ?
文件到文件
/root/123/目錄下的2.txt文件復制到/tmp/目錄下并保留權限,并指定端口22:?scp -p -P 22 /root/123/2.txt root@127.0.0.1:/tmp/123.txt ?
/root/123/2.txt root@127.0.0.1:/tmp/123/ :這樣會報錯, 123/不是一個文件
注意兩點:
1.如果遠程服務器防火墻有特殊限制,scp便要走特殊端口,具體用什么端口視情況而定
2.使用scp要注意所使用的用戶是否具有可讀取遠程服務器相應文件的權限。
?
?
下半節課
?
rsync(有加密傳輸,有流量控制,有斷點續傳,有傳輸壓縮)
當前登錄用戶:root
遠端和本地都必須要安裝rsync:?yum install -y rsync?
上傳#模塊名test
下載
rsync username@ip:/tmp/1.txt /tmp/1.txt rsync username@ip::test/1.txt /tmp/1.txt?
?
rsync -a (-r 遞歸 -l 保留軟鏈接 拷貝過去也是軟鏈接不是真正的文件 -p 保留權限,比如755,過去也是755,-t 保留三個time ,-g 所屬組 -o 所屬主 -D 設備)
-r 遞歸 recursive
-l 保留軟鏈接 拷貝過去也是軟鏈接不是真正的文件
-p preserve保留權限,比如755,過去也是755
-t 保留三個time
-g 所屬組
-o 所屬主
-D 設備
-v 可視化
-L 軟鏈接所指向的源文件也拷貝過去
-z 壓縮 zip
-u 遠端文件有更新 ,如果源比目標還要舊,防止源覆蓋目標,加上u不覆蓋目標文件
--partial 保留那些因故沒有完全傳輸的文件,以是加快隨后的再次傳輸 ,斷點續傳
--delete 刪除源沒有,而目標有的文件
--exclude 過濾文件或目錄
--progess 傳輸進度
--bwlimit 限速 ,單位KB/s
--delete-before 在傳輸之前刪除源端文件實際不傳輸 receiver deletes before transfer (default)
-d 不傳輸子目錄 --dirs transfer directories without recursing
-H 保留硬鏈接 --hard-links preserve hard links
--stats 顯示狀態 give some file-transfer stats
--copy-unsafe-links 復制不安全鏈接 only "unsafe" symlinks are transformed
--safe-links 忽略符號鏈接 ignore symlinks that point outside the tree
d -a -H -v --progress --stats /空目錄/ /目標路徑/
--files-from
--exclude-from
rsync -av --files-from=/root/syncto.txt --exclude-from=/root/excludefile.txt / /tmp/
注意:源路徑要從根開始,會在目標目錄下創建完整路徑目錄,比如/usr/2.usr,會在tmp目錄下創建usr目錄并復制2.usr過去
vi /root/syncto.txt
/root/pgsql2.txt
/root/pgsql3.txt
/usr/2.usr
vi /root/excludefile.txt
/root/excludefile.txt
/root/pgsql3.txt
The --relative (-R) 遞歸是隱式默認選項把/root/syncto.txt里的目錄里面的文件都復制option is implied, which preserves the path? information? that? is
?? ??? ??? ??? ? specified? for? each item in the file (use --no-relative or --no-R if you want to turn
?? ??? ??? ??? ? that off).
?? ??? ?? o????? The --dirs (-d) 目錄是隱式默認選項 會自動創建完整路徑 option is implied, which will create directories specified in the list
?? ??? ??? ??? ? on? the? destination rather than noisily skipping them (use --no-dirs or --no-d if you
?? ??? ??? ??? ? want to turn that off).
?? ??? ?? o????? The --archive (-a) 非隱式默認選項 option’s behavior does not imply --recursive (-r),? so? specify? it
?? ??? ??? ??? ? explicitly, if you want it.
tmp]# ll
total 5444
dr-xr-x--- 2 root root?? 4096 Jan 26 19:55 root
drwxr-xr-x 2 root root?? 4096 Jan 26 19:51 usr
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=4189580&extra=page%3D1%26filter%3Dauthor%26orderby%3Ddateline%26orderby%3Ddateline
?
rsync 同步判斷標準:
文件信息 類似于inode ,文件信息不一樣,則只同步文件信息 而不會同步文件內容
文件內容 文件內容不一樣,則只同步文件內容 ,而不會同步文件信息
文件名相同不相同,不作為判斷標準,他只判斷文件信息和文件內容
?
只拷貝軟鏈接:?rsync -avl usr/ /tmp/123/?
拷貝實際文件:?rsync -avL usr/ /tmp/123/?
不拷貝軟鏈接,排除a選項里面的l選項:?rsync -a --no-l -v usr/ /tmp/123/?
壓縮:?rsync -avLz usr/ /tmp/123/?
刪除源沒有,而目標有的文件:?rsync -av --delete usr/ /tmp/123/?
過濾
或者
?rsync -av --exclude="*bin" usr/ /tmp/123/?
顯示速度和進度:?rsync -av --progess usr/ /tmp/123/?
限制速度為100KB:?rsync -av --bwlimit=100 usr/ /tmp/123/?
上傳:?rsync -avzL /root/usr/ root@192.168.21.112:/tmp/usr/?
下載:?rsync -avzL root@192.168.21.112:/tmp/usr/ ./usr/ ?
指定端口:?rsync -avzL -e "ssh -p 2220" 192.168.21.112:/tmp/usr/ /usr/?
?
示例 ?服務器1Mbps帶寬,速度非常慢
rsync -avzL -e "ssh -p 12322" /usr/ steven@162.189.86.58:/tmp/usr/# du -sh /tmp/usr 39M /tmp/usr?
-c:Ciphers 指定傳輸加密算法:?rsync -apur --stats --progress -e "ssh -c arcfour" bigfile.dat root@192.168.27.142:/tmp/ ?
http://blog.chinaunix.net/uid-16728139-id-3265394.html
http://www.cnblogs.com/MYSQLZOUQI/p/4883519.html
?
注意:使用rsync要注意所使用的用戶是否具有可讀取遠程服務器相應文件的權限。
?
?
CS的連接模式
只需三步
1、寫一個/etc/rsyncd.conf 配置文件
2、rsync --daemon 啟動服務
3、是否監聽873端口 netstat -lnp |grep 873
?
默認去使用/etc/rsyncd.conf這個配置文件,也可以指定配置文件 rsync --daemon --config=/etc/rsyncd2.conf
/etc/rsyncd.conf 里可以做注釋,但是要寫成單獨的一行,不能和配置內容寫在同一行里
修改了rsyncd.conf文件 馬上生效,不需要重啟服務,這么多服務rsync是不需要重啟服務馬上生效的
?
rsync應用實例 - 后臺服務方式
配置文件 /etc/rsyncd.conf ,內容如下:
#port=873 #監聽端口默認為873,也可以是別的端口
log file=/var/log/rsync.log #指定日志
pid file=/var/run/rsyncd.pid #指定pid
#address=192.168.0.10 #可以定義綁定的ip
----------------------------------------------------------
以上部分為全局配置部分,以下為模塊內的設置
[test] #為模塊名,自定義
path=/root/rsync # 指定該模塊對應在哪個目錄下
use chroot=true #是否限定在該目錄下,默認為true,當有軟連接并且rsync同步的時候指定了L選項,需要改為fasle
max connections=4 # 指定最大可以連接的客戶端數
read only=no #是否為只讀
list=true #是否可以列出模塊名 最好設置為false 更安全
uid=root #以哪個用戶的身份來傳輸 傳過去之后,文件的uid就為root ,可以去掉保留源權限
gid=root #以哪個組的身份來傳輸 傳過去之后,文件的gid就為root,可以去掉保留源權限
#auth users=test #指定驗證用戶名,可以不設置 用hosts allow來限制來訪的主機就可以保證足夠安全,這個用戶跟系統用戶無關,可以隨便輸入一個用戶名
#secrets file=/etc/rsyncd.passwd #指定密碼文件,如果設定驗證用戶,這一項必須設置,使用密碼文件就不需要輸入密碼了,可以寫在腳本里定時調用
hosts allow=192.168.0.101 #設置可以允許訪問的主機,可以是網段,白名單
?
/etc/rsyncd.conf 文件示例
#port=873 log file=/var/log/rsync.log pid file=/var/run/rsyncd.pid #address=192.168.0.10 [test] path=/root/rsync/ use chroot=true max connections=4 read only=no list=false uid=root #一定不能注釋掉 gid=root #一定不能注釋掉 exclude = install.log install.log.syslog anaconda-ks.cfg auth users=test secrets file=/etc/rsyncd.passwd hosts allow=192.168.0.101?
指定模塊名:?rsync -av 1.txt 192.168.31.112::test/2.txt?
列出模塊名:?rsync 192.168.31.112::?
?
rsync服務是否已經啟動
$ ps aux |grep rsync |grep -v grep root 25786 0.0 0.0 10756 704 ? Ss 14:24 0:00 rsync --daemon?
?
?
密碼文件/etc/rsyncd.passwd的內容格式為:username:password
在服務器端創建一個文件:/etc/rsyncd.passwd,
vi /etc/rsyncd.passwd
test:123456 //密碼只能明文
chmod 600 /etc/rsyncd.passwd
?
客戶端
rsync -av --password-file=/etc/rsyncd.passwd 3.txt test@192.168.1.12::test/6.txt //注意test用戶
在/etc/rsyncd.passwd 里直接寫密碼,密碼只能明文
chmod 600 /etc/rsyncd.passwd
?
殺死rsync服務:?killall rsync ?
?
?
rsync同步的時候注意服務器和客戶端上的UID,客戶端不一定有服務器上的用戶
?
?
md5sum
sha1sum
md5sum與sha1sum命令用于對文件進行校驗和
安裝了Linux后,就會有md5sum這個工具,直接在命令行終端直接運行
?
?
1、使用md5sum來產生指紋(報文摘要)命令如下:
?md5sum filename > filename.md5?
或者
?md5sum filename >>filename.md5?
2、使用md5報文摘要驗證文件
把下載的文件file和該文件的file.md5報文摘要文件放在同一個目錄下,然后用如下命令進行驗證:
md5sum -c filename.md5
md5sum filename > filename.md5
然后如果驗證成功,則會輸出:正確
?
md5sum與sha1sum命令用于對文件進行校驗和,如:
$ md5sum a.txt
f377aaac2f5d73e805212e5d6249cf5b4b4d8ce2 a.txt
md5sum命令也可以接受多個文件或通配符,如:
$ md5sum file1 file2 file3 … ?或md5sum ?/tmp/*
[checksum1] file1
[checksum2] file2
[checksum3] file3
…
$ md5sum *.txt
[checksum1] a.txt
[checksum2] b.txt
[checksum3] c.txt
…
-c選項可以用生成的md5文件核實數據的完整性,把源文件file和該文件的file.md5報文摘要文件放在同一個目錄下,如:
$ md5sum a.txt > a.md5
$ md5sum –c a.md5
a.txt: OK
SHA1與md5類似,是另一種常用的校驗和算法。它從給定的輸入文件中生成一個長度為40個字符的十六進制串。命令為sha1sum,使用方法與md5sum類似。
?
# cd /root/123 # md5sum 2.txt >2.txt.md5 # ll 總用量 12 -rw-r--r-- 1 root root 0 10月 7 02:21 1.txt -rw-r--r-- 1 root root 3 10月 7 06:27 2.txt -rw-r--r-- 1 root root 40 10月 7 07:04 2.txt.md5 -rw-r--r-- 1 root root 0 10月 7 02:21 3.txt -rw-r--r-- 1 root root 0 10月 7 06:16 4.txt -rw-r--r-- 1 root root 1 2月 8 2015 test # cat 2.txt.md5 7ed0097d7e9ee73cf0952a1f0a07c07e 2.txt # md5sum -c 2.txt.md5 2.txt: 確定?
?
strace?
http://www.apelearn.com/bbs/thread-585-1-1.html
如果某些服務沒有記錄日志的,例如sshd,可以安裝strace來跟蹤一下
strace常用來跟蹤進程執行時的系統調用和所接收的信號。 在Linux世界,進程不能直接訪問硬件設備,當進程需要訪問硬件設備(比如讀取磁盤文件,接收網絡數據等等)時,必須由用戶態模式切換至內核態模式,通過系統調用訪問硬件設備。strace可以跟蹤到一個進程產生的系統調用,包括參數,返回值,執行消耗的時間。
strace 命令是一種強大的工具, 能夠顯示任何由用戶空間程式發出的系統調用. strace 顯示這些調用的參數并返回符號形式的值. strace 從內核接收信息, 而且無需以任何特別的方式來構建內核. strace 的每一行輸出包括系統調用名稱, 然后是參數和返回值.
?
strace使用參數
-p 跟蹤指定的進程
-f 跟蹤由fork子進程系統調用
-F 嘗試跟蹤vfork子進程系統調吸入,與-f同時出現時, vfork不被跟蹤
-o filename 默認strace將結果輸出到stdout。通過-o可以將輸出寫入到filename文件中
-ff 常與-o選項一起使用,不同進程(子進程)產生的系統調用輸出到filename.PID文件
-r 打印每一個系統調用的相對時間
-t 在輸出中的每一行前加上時間信息。 -tt 時間精確到微秒級。還可以使用-ttt打印相對時間
-v 輸出所有系統調用。默認情況下,一些頻繁調用的系統調用不會輸出
-s 指定每一行輸出字符串的長度,默認是32。文件名一直全部輸出
-c 統計每種系統調用所執行的時間,調用次數,出錯次數。
-e expr 輸出過濾器,通過表達式,可以過濾掉你不想要的輸出
?
安裝:?yum install -y strace?
跟蹤sshd服務重啟過程:?strace /etc/init.d/sshd restart?
?
跟蹤某個進程
#netstat -nltp|grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23681/nginx # strace -p 23681 Process 23681 attached - interrupt to quit rt_sigsuspend([] ^C <unfinished ...> Process 23681 detached?
?
find
根據inode號刪除文件
$ ls -li 11883412-rw-r--r-- 1 oracle dba 254 Jan 31 19:21 \ find ./ -inum 11883412 |xargs rm -f?
?
?
?
在log文件里看到錯誤信息:log file=/var/log/rsync.log
后來發現是因為/etc/rsyncd.conf文件里模塊名沒有加右]? ,不知道為什么,都是復制粘貼過去的
[webbak
path=/mydata/bak/webbak/
use chroot=true
?Badly formed line in configuration file: webbak
tail /var/log/rsync.log 015/10/12 18:22:57 [4927] params.c:pm_process() - Failed. Error returned from params.c:parse(). 2015/10/12 18:22:57 [4927] rsync error: syntax or usage error (code 1) at clientserver.c(923) [receiver=3.0.6] 2015/10/12 18:23:06 [4970] params.c:Section() - Badly formed line in configuration file: webbak 2015/10/12 18:23:06 [4970] params.c:pm_process() - Failed. Error returned from params.c:parse(). 2015/10/12 18:23:06 [4970] rsync error: syntax or usage error (code 1) at clientserver.c(923) [receiver=3.0.6] 2015/10/12 18:24:03 [5019] params.c:Section() - Badly formed line in configuration file: webbak 2015/10/12 18:24:03 [5019] params.c:pm_process() - Failed. Error returned from params.c:parse(). 2015/10/12 18:24:03 [5019] rsync error: syntax or usage error (code 1) at clientserver.c(923) [receiver=3.0.6]?
/etc/rsyncd.conf配置域名白名單
可以寫個腳本,每分鐘(添加任務計劃)ping那個域名,把得到的ip和你的配置文件比較,如果相同不理他,不同了,就改一下
適合家里沒有固定IP,用花生殼做域名的情況
?
?
Rsync 常見錯誤及解決方法
http://www.tuicool.com/articles/me2IFjf
由于阿里云SLB不提供ECS間的數據同步服務,如果部署在SLB后端ECS上的應用服務是無狀態的,那么可以通過獨立的ECS或RDS服務來存儲數據;如果部署在SLB后端ECS上的應用服務是有狀態的,那么需要確保這些ECS上的數據是同步的。
我們通過Rsync來實現多個ECS之間的數據同步。
通過Rsync來實現多個ECS之間的數據同步
通過Rsync來實現多個ECS之間的數據同步,請查看此文。
問題 @ERROR: chroot failed
@ERROR: chroot failed rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
原因:
服務器端的目錄不存在或無權限。
解決辦法:
創建目錄并修正權限可解決問題。
問題 skipping non-regular file
receiving incremental file list
skipping non-regular file “vendor/bin/doctrine”
skipping non-regular file “vendor/bin/doctrine.php”
sent 1990 bytes received 489209 bytes 327466.00 bytes/sec total size is 182515746 speedup is 371.57
原因:
source源文件有軟鏈接。
解決方法:
修改為 rsync -va,其中 -a == -rlptgoD (no -H,-A,-X) 或者 rsync -rvltOD 也可以。
解決后:
receiving incremental file list
vendor/bin/doctrine -> ../doctrine/orm/bin/doctrine
vendor/bin/doctrine.php -> ../doctrine/orm/bin/doctrine.php
sent 1998 bytes received 489279 bytes 327518.00 bytes/sec total size is 182515746 speedup is 371.51
問題@ERROR: module is read only
sending incremental file list
ERROR: module is read only
rsync error: syntax or usage error (code 1) at main.c(866) [receiver=3.0.6]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [sender=3.0.6]
原因:
source源服務器端權限設置read為only只讀權限。
解決方法:
read only = false
問題@ERROR: auth failed on module tee
@ERROR: auth failed on module tee rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.6]
原因:
服務器端該模塊(tee)需要驗證用戶名密碼,但客戶端沒有提供正確的用戶名密碼,認證失敗。
解決方法:
提供正確的用戶名密碼解決此問題。
問題 @ERROR: Unknown module ‘tee_nonexists’
@ERROR: Unknown module ‘tee_nonexists’ rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.6]
原因:
服務器不存在指定模塊。
解決方法:
提供正確的模塊名或在服務器端修改成你要的模塊以解決問題。
問題 password file must not be other-accessible
password file must not be other-accessible
continuing without password file
Password:
原因:
這是因為rsyncd.pwd rsyncd.secrets的權限不對,應該設置為600。
解決方法:
chmod 600 rsyncd.pwd
問題 rsync: failed to connect No route to host
rsync: failed to connect to 192.168.1.10: No route to host (113) rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=3.0.6]
原因:
對方沒開機、防火墻阻擋、通過的網絡上有防火墻阻擋,都有可能。
解決方法:
在iptables 中開放該端口,語句如下:
iptables -I INPUT -p tcp –dport 873 -j ACCEPT
rsync默認端口873,其實就是把tcp udp的873端口打開。
問題 rsync error: error starting client-server protocol
rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver=3.0.6]
原因:
/etc/rsyncd.conf配置文件內容有錯誤。請正確核對配置文件。
問題 rsync: chown “” failed: Invalid argument (22)
rsync: chown “” failed: Invalid argument (22)
原因:
權限無法復制。去掉同步權限的參數即可。(這種情況多見于Linux向Windows的時候)
問題 @ERROR: daemon security issue — contact admin
@ERROR: daemon security issue — contact admin rsync error: error starting client-server protocol (code 5) at main.c(1530) [sender=3.0.6]
原因:
同步的目錄里面有權限不足的軟連接文件,需要服務器端的/etc/rsyncd.conf打開use chroot = yes。
問題 rsync: read error: Connection reset by peer (104)
rsync: read error: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receiver=3.0.6]
解決:很大可能是服務器端沒有開啟 rsync 服務,開啟服務。
問題 @ERROR: failed to open lock file
@ERROR: failed to open lock file rsync error: error starting client-server protocol (code 5) at main.c(1495) [receiver=3.0.6]
解決:配置文件 rsync.conf 中添加 lock file = rsyncd.lock 即可解決。
?
問題 /root/.bashrc: line 1:?x: command not found
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(171) [sender=3.0.6]
解決:檢查一下 用戶目錄下的?.bashrc 文件
?
scp、rsync、ftp的功能總結
客戶端:scp ,rsync,lftp
服務端:vsftp,sshd,rsync
斷點續傳:winscp、lftp、rsync
加密傳輸:rsync、scp、FTP(需要服務器端支持)
壓縮傳輸:scp、rsync
流量控制:scp、rsync、lftp
通過比較,Linux下能取代FTP協議的服務器端和客戶端軟件只有rsync
http://www.cnblogs.com/MYSQLZOUQI/articles/4911707.html
?
?
?
f
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [密码学基础][每个信息安全博士生应该知
- 下一篇: Python电影推荐系统