mac上傳檔案到服務端的方法
阿新 • • 發佈:2019-01-04
1.使用命令列
將本地檔案傳到104.224.166.36的伺服器
scp -P 27988 /Users/hill/Desktop/start.sh [email protected]:/root
-P表示埠號 大寫 27988表示伺服器的埠號,一般不填寫表示預設的埠號22
/Users/hill/Desktop/start.sh 表示本地檔案
[email protected]:/root表示遠端檔案目錄
登入伺服器檢視 檔案已經上傳
如果要上傳目錄 用-r
scp -P 27988 -r /Users/hill/Desktop/new [email protected]:/root
登入伺服器 表示檔案已上傳
下載伺服器檔案到本地
scp -P 27988 [email protected]:/root/hi.txt /Users/hill/Desktop/hhh
伺服器檔案目錄[email protected]:/root/hi.txt
本地檔案目錄/Users/hill/Desktop/hhh
2.方法2 使用beyound compare工具,這個工具對比程式碼非常方便
3.使用filezilla上傳 只有配置好即可
開啟filezilla