打开终端,在本地终端使用 scp 命令上传本地文件到 linux 服务器上。
scp /Users/xjz/workFile/tmp-executor.jar root@172.x.x.x:/home/coreapp/tmp-executor/tmp-executor.jar
其中:[email protected]:/home/coreapp/tmp-executor/tmp-executor.jar 代表要上传到的 linux 服务器 ip 和文件路径。
打开终端,在本地终端使用 scp 命令上传本地文件到 linux 服务器上。
scp /Users/xjz/workFile/tmp-executor.jar root@172.x.x.x:/home/coreapp/tmp-executor/tmp-executor.jar
其中:[email protected]:/home/coreapp/tmp-executor/tmp-executor.jar 代表要上传到的 linux 服务器 ip 和文件路径。