I am using the Alibaba Cloud Toolkit under IDEA. The plugin is directly deployed to the Alibaba Cloud server, which is super convenient:
It's it↓:
The following is the official tutorial address of Alibaba Cloud:
https://yq.aliyun.com/articles/665693
Watch as you use it, it’s too powerful, to eliminate inefficiency and repetitive operations ლ(′◉❥◉`ლ)
The specific commands and configuration sh scripts can be adjusted according to your needs.
For example, a beta version of my own:
Command configuration
sh /root/zhangyanru-restart-springboot.sh
The content of the zhangyanru-restart-springboot.sh script is as follows
Note that /root is the location of the jar package and the package name
source /etc/profile
killall java
nohup java -jar /root/xxgk-aejar > nohup.log 2>&1 &