打開終端,在本地終端使用 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 和文件路徑。