1 Star 0 Fork 1.3K

ouyangde/WukongCRM-11.0-JAVA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
72crm.sh 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
banma 提交于 2022-02-23 03:28 . 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 >> /dev/null 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 "项目已关闭"
}
function restart()
{
P_ID=`ps -ef | grep -w ${project.artifactId}-${project.version}.jar | grep -v "grep" | awk '{print $2}'`
start
sleep 25s
kill $P_ID
echo "项目重启成功"
}
if [[ "$COMMAND" == "start" ]]; then
start
elif [[ "$COMMAND" == "stop" ]]; then
stop
else
restart
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yiqihang1/crm_pro.git
git@gitee.com:yiqihang1/crm_pro.git
yiqihang1
crm_pro
WukongCRM-11.0-JAVA
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385