启动
#!/bin/bash
export JAVA_HOME=
java -jar xx.jar


关闭jar
#!/bin/bash
kill -9 `ps -ef | grep xx | awk '{print $2}' `