1 Star 0 Fork 460

sinvos / 72crm-11.0-Spring

forked from 悟空CRM / 72crm-11.0-Spring 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
72crm.sh 1.01 KB
Copy Edit Web IDE Raw Blame History
banma authored 2020-12-03 11:12 . update 72crm.sh.
#!/bin/bash
COMMAND="$1"
if [[ "$COMMAND" != "start" ]] && [[ "$COMMAND" != "stop" ]] && [[ "$COMMAND" != "restart" ]]; then
echo "Usage: $0 start | stop | restart"
exit 0
fi
APP_BASE_PATH=$(cd `dirname $0`; pwd)
function start()
{
JAVA_OPTS=-Dspring.profiles.include=core,test
if [[ "${project.artifactId}" == "wk_gateway" ]]; then
JAVA_OPTS=
fi
# -Xms分配堆最小内存,默认为物理内存的1/64;-Xmx分配最大内存,默认为物理内存的1/4 如果程序会崩溃请将此值调高
nohup java -Xms128m -Xmx512m -jar ${JAVA_OPTS} ${project.artifactId}-${project.version}.jar >> output.log 2>&1 &
echo "--------项目启动成功--------"
echo "--------欢迎使用悟空CRM ^_^--------"
}
function stop()
{
P_ID=`ps -ef | grep -w ${project.artifactId}-${project.version}.jar | grep -v "grep" | awk '{print $2}'`
kill $P_ID
echo "项目已关闭"
}
if [[ "$COMMAND" == "start" ]]; then
start
elif [[ "$COMMAND" == "stop" ]]; then
stop
else
stop
start
fi

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/likeshe/crm_pro.git
git@gitee.com:likeshe/crm_pro.git
likeshe
crm_pro
72crm-11.0-Spring
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385