用来启动 停止 springboot应用的脚步 加入springboot启动参数,用来指定运行那个配置文件,跟在启动命令,第三个参数 eg:--spring.profiles.active=dev
- start 后面可以跟相对路径和绝对路径, 最后的文件名来作为AppName
➜ springboot-start-shell git:(master) ./pms.sh start /Users/liuhaiming/Documents/workspace/raventech/code/nlp/nlp-user/target/nlpUser.jar
check running status...
App is NOT running.
start...
check running status...
App is running.
Start success!
➜ springboot-start-shell git:(master) ./pms.sh check nlpUser
check running status...
App is running.
➜ springboot-start-shell git:(master) ✗ ./pms.sh check nlp
check running status...
App is NOT running.
➜ springboot-start-shell git:(master) ✗ ./pms.sh stop nlpUser
Stop Process...
Stop Success!
➜ springboot-start-shell git:(master) ✗ ./pms.sh stop nlp
App already stop!
➜ springboot-start-shell git:(master) ✗ ./pms.sh list all
80569 java nlpUser
➜ springboot-start-shell git:(master) ✗ ./pms.sh list nlpUser
80569 java nlpUser
➜ springboot-start-shell git:(master) ✗ ./pms.sh list nlp