ubuntu命令 ---将一个文件放进另一个服务器上

scp -r ./1.tar 2.tar    ci@it:~/wechat
#将openplatform.tar包和wechatserver.tar包
放进另一个服务的wechat目录下(~/为该用户的主目录)

将1.tar包和2.tar包
放进另一个服务的wechat目录下(~/为该用户的主目录)

ci是用户名   it是服务器名称(一般是ip) ----ssh [email protected]

也可以上传目录:

scp -r ./openplatform/*    ci@it:~/wechat

将openplatform文件夹和下面的文件都传到另一台服务的wechat目录下

猜你喜欢

转载自blog.csdn.net/qq_39729527/article/details/81286430