[idea] manually package and deploy with SSH tool in idea

I use the MobaXterm tool:

 The first step: first run your own file as a whole to ensure that it can run normally

Step 2: Find the name named XXXX (root) in Maven and expand---"Lifecycle, click clean first, make sure it is correct, and then click package, then the triangle symbol to start running on the Maven interface will turn green, click run to start packaging .

Step 3: After the packaging is completed, a target file will be generated under the same-level file of the startup class (that is, the class that runs all projects).  

Step 4: If you find that the number of files in the target file directory is not enough, right-click the project name, and then refresh it.

Step 5: Find the .jar package in the target file, take out the following files separately and put them in a new (new) (named in English), and then compress and package it new.zip

Step six:

 Open the MobaXterm software and log in to your account

Step seven:

First enter the serial number corresponding to the server to be connected and press Enter

pwd View current address

lsof -i: port number

rm -rf filename completely deletes the file

mv ab move this directory from a to b

mkdir newfile Create a new directory/folder

java -jar XXXX.jar view jar package

kill process kill process

cd /XXX/XXXX Enter the XXX/XXXX directory

cd .. return to the previous layer

ll lists all files in the directory

clear clear screen

First upload the new.zip compressed package to the root, then use mv ........ to move from the root to the server, and use java -jar XXXX.jar to check whether there is a jar package.

Probably this means, if you don’t understand, just look and search⑧

O(∩_∩)O haha~

Guess you like

Origin blog.csdn.net/yao_yaoya/article/details/128287918