百度的網(wǎng)站關(guān)鍵詞被篡改友情鏈接交易平臺
服務(wù)器與本地之間的數(shù)據(jù)傳輸
本地給服務(wù)器上傳數(shù)據(jù)
scp /path/to/local_file username@remotehost:/path/to/remote_directory
例如
scp test.txt root@192.168.1.xxx:/test
# test.txt 需要上傳到服務(wù)器的文件,如果非當前路徑,使用文件的相對路徑或絕對路徑
# /test 服務(wù)器上的保存路徑
一般情況下,輸入后,需要輸入服務(wù)器密碼,才能成功上傳文件到服務(wù)器
服務(wù)器數(shù)據(jù)下載到本地
scp username@remotehost:/path/to/remote_file /path/to/local_directory
例如
scp root@192.168.1.xxx:/test/test.txt /data
# /test/test.txt 服務(wù)器上目標文件路徑
# /data 本地的保存路徑