多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# java应用启动管理 ``` manage@ubuntu:~/highrise$ cat run_highrise.sh #!/bin/bash #set -x BASH_PATH=/home/manage/highrise/ start(){ $(nohup java -jar -Dspring.profiles.active=prod ${BASH_PATH}highrise-websky-1.0.0.jar > ${BASH_PATH}highrise.log 2>&1 &) } stop(){ ps -ef|grep java | awk '/highrise-websky/{ print $2 }' | xargs kill -9 } case $1 in start) start && echo -e "\033[47;32m highrise start successfully! \033[0m"|| \ echo -e "\033[47;31m error:highrise start failed! \033[0m" ;; stop) stop && echo -e "\033[47;32m highrise stop successfully! \033[0m" || \ echo -e "\033[47;31m error:highrise stop failed! \033[0m" ;; *) echo -e "\033[47;31m $0 start|stop \033[0m" ;; esac ```