2023-06-07
java -Xms1024M -Xmx5120M -Dfile.encoding=UTF-8 -jar xxx.jar --spring.config.location=application.yml >> log.out &
启动 start.sh
#!/bin/bash nohup java -jar xxx.jar >> log.out &
停止 stop.sh
#!/bin/bash jps -l |grep xxx.jar |cut -d' ' -f1|xargs kill -9 sleep 1 jps -l