1. 程式人生 > >linux遠端拷貝檔案方法及not a regular file 錯誤解決方案

linux遠端拷貝檔案方法及not a regular file 錯誤解決方案

操作步驟:

1、搭建區域網:參考以下文章中網路配置部分:http://dblab.xmu.edu.cn/blog/install-hadoop-cluster/

2、搭建好區域網後,可以使用scp命令完成遠端檔案拷貝操作

命令格式: 

scp [引數] [原路徑] [目標路徑]

scp local_file [email protected]_ip:remote_folder   #從本地伺服器複製到遠端伺服器

       例如:scp /home/hadoop/test_mysql.py 

[email protected]:/home/hadoop/  

 參考資料:https://www.cnblogs.com/webnote/p/5877920.html

若在拷貝過程中出現not a regular file錯誤,可嘗試在使用scp命令時加上引數 -r