Alibaba Cloud Toolkit deployment project plugin
Weekend study summary
idea download Alibaba Cloud Toolkit
First download and install the Alibaba Cloud Toolkit plug-
in in the plug- in, insert the picture description here
After installing the plug-in, you can use it
Click Add Host
** to
set the connection server properties and test the connection
Upload code
Get the pid of the jar package, kill the process, run the jar package in the background to output the log, and pid
ps aux | grep "ai-portrait-service.jar" |grep -v grep| cut -c 9-15 | xargs kill -9; nohup java -jar ai-portrait-service.jar >> logs/ai-portrait.log 2>&1 &