The back-end code is deployed on the server

Select maven on the right side of idea, select the parent project, clean and then install in Lifecycle. The newly generated file in the target folder is packaged into a .jar suffix.

Use XShell to connect to the server, first stop the service of the module to be replaced, command ./startup.sh stop.

Then use xftp to directly copy the original .jar package on the server, make a backup first, and then delete it directly, and then put the .jar generated in the first step in the deleted location.

Stop the service again, ./startup.sh stop

Start the service again, ./startup.sh start

Check, type in the browser

Server ip: 8848/nacos

Guess you like

Origin blog.csdn.net/A_234_789/article/details/106274040