Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skreceive
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
043edb56
由
张雷
编写于
2022-10-02 11:05:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
启动配置文件
1 个父辈
9edafe6e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
148 行增加
和
9 行删除
src/main/resources/application.yml
src/main/shell/shutdown.sh
src/main/shell/startup.sh
src/main/resources/application.yml
查看文件 @
043edb5
server
:
port
:
8888
servlet
:
context-path
:
/skreceive
# 应用服务 WEB 访问端口
spring
:
datasource
:
druid
:
url
:
jdbc:mysql://115.28.25.233:6630/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
username
:
jk_test
password
:
Jk_test1211rw
driver-class-name
:
com.mysql.jdbc.Driver
# url: jdbc:mysql://115.28.25.233:6630/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
# username: jk_test
# password: Jk_test1211rw
url
:
jdbc:mysql://127.0.0.1:13306/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
username
:
root
password
:
bkyh925.
redis
:
port
:
6379
...
...
@@ -23,8 +29,3 @@ mybatis-plus:
# 开启日志
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
server
:
port
:
8888
servlet
:
context-path
:
/skreceive
...
...
src/main/shell/shutdown.sh
0 → 100644
查看文件 @
043edb5
#!/bin/bash
#
# Copyright (c) 2001-2019 kingtroldata, Ltd.
# All rights reserved.
#
# author: liyuanyuan (mailto:yuanyuan.li@kingtroldata.com)
#
## resolve links
PRG
=
"
$0
"
# need this for relative symlinks
while
[
-h
"
$PRG
"
]
;
do
ls
=
`
ls -ld
"
$PRG
"
`
link
=
`
expr
"
$ls
"
:
'.*-> \(.*\)$'
`
if
expr
"
$link
"
:
'/.*'
> /dev/null;
then
PRG
=
"
$link
"
else
PRG
=
"
`
dirname
"
$PRG
"
`
/
$link
"
fi
done
saveddir
=
`
pwd
`
SKRECEIVE_COMPONENT_HOME
=
`
dirname
"
$PRG
"
`
/..
# make it fully qualified
SKRECEIVE_COMPONENT_HOME
=
`
cd
"
$SKRECEIVE_COMPONENT_HOME
"
&&
pwd
`
cd
"
$saveddir
"
SERVICE_NAME
=
skreceive
export
MODE
=
service
export
PID_FOLDER
=
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/logs
export
LOG_FOLDER
=
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/logs
export
identity
=
${
SERVICE_NAME
}
# export CONF_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/conf
# If exists private jdk
if
[
-d
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
||
[
-h
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
||
[
-L
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
;
then
export
JAVA_HOME
=
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
fi
RECEIVE_JAR
=
`
echo
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/
*
.jar
`
if
[
! -x
"
${
RECEIVE_JAR
}
"
]
;
then
chmod +
"
${
RECEIVE_JAR
}
"
fi
$RECEIVE_JAR
stop
"
$@
"
src/main/shell/startup.sh
0 → 100644
查看文件 @
043edb5
#!/bin/bash
#
# Copyright (c) 2001-2019 kingtroldata, Ltd.
# All rights reserved.
#
# author: liyuanyuan (mailto:yuanyuan.li@kingtroldata.com)
#
## resolve links
PRG
=
"
$0
"
# need this for relative symlinks
while
[
-h
"
$PRG
"
]
;
do
ls
=
`
ls -ld
"
$PRG
"
`
link
=
`
expr
"
$ls
"
:
'.*-> \(.*\)$'
`
if
expr
"
$link
"
:
'/.*'
> /dev/null;
then
PRG
=
"
$link
"
else
PRG
=
"
`
dirname
"
$PRG
"
`
/
$link
"
fi
done
saveddir
=
`
pwd
`
SKRECEIVE_COMPONENT_HOME
=
`
dirname
"
$PRG
"
`
/..
# make it fully qualified
SKRECEIVE_COMPONENT_HOME
=
`
cd
"
$SKRECEIVE_COMPONENT_HOME
"
&&
pwd
`
cd
"
$saveddir
"
# If you start multiple instances on a single host, you need to modify this service name to avoid conflicts.
SERVICE_NAME
=
skreceive
# 开启远程调试
SKRECEIVE_DEBUG_ENABLE
=
false
export
MODE
=
service
export
PID_FOLDER
=
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/logs
export
LOG_FOLDER
=
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/logs
export
LOG_FILENAME
=
"
${
SERVICE_NAME
}
.out"
export
identity
=
${
SERVICE_NAME
}
if
[
"x
$SKRECEIVE_HEAP_OPTS
"
=
"x"
]
;
then
SKRECEIVE_HEAP_OPTS
=
"-Xms2048M -Xmx2048M"
fi
mkdir -p
$LOG_FOLDER
#ln -s /dev/null $LOG_FOLDER/$LOG_FILENAME 2>/dev/null
#JAVA_OPTS="$JAVA_OPTS -Dlogging.file=$LOG_FOLDER/$SERVICE_NAME.log"
JAVA_OPTS
=
"
$JAVA_OPTS
-Djava.net.preferIPv4Stack=true -Duser.timezone=Asia/Beijing -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
JAVA_OPTS
=
"
$JAVA_OPTS
$SKRECEIVE_HEAP_OPTS
"
JAVA_OPTS
=
"
$JAVA_OPTS
-XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow"
JAVA_OPTS
=
"
$JAVA_OPTS
-XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC "
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -Xloggc:$LOG_FOLDER/heap_trace.txt -XX:HeapDumpPath=$LOG_FOLDER/HeapDumpOnOutOfMemoryError/"
JAVA_OPTS
=
"
$JAVA_OPTS
-Dlog.path=
$LOG_FOLDER
"
# if debug enabled
if
[
'trueX'
==
"
${
SKRECEIVE_DEBUG_ENABLE
}
X"
]
;
then
if
[
-z
"
${
SKRECEIVE_DEBUG_PORT
}
"
]
;
then
SKRECEIVE_DEBUG_PORT
=
8787
fi
JAVA_OPTS
=
"
${
JAVA_OPTS
}
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=
${
SKBOOT_DEBUG_PORT
}
"
fi
export
JAVA_OPTS
# If exists private jdk
if
[
-d
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
||
[
-h
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
||
[
-L
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
]
;
then
export
JAVA_HOME
=
"
${
SKRECEIVE_COMPONENT_HOME
}
/jdk"
fi
RECEIVE_JAR
=
`
echo
"
${
SKRECEIVE_COMPONENT_HOME
}
"
/
*
.jar
`
if
[
! -x
"
${
RECEIVE_JAR
}
"
]
;
then
chmod +
"
${
RECEIVE_JAR
}
"
fi
if
[
"x
$FOREGROUND
"
=
"xtrue"
]
;
then
export
MODE
=
run
$RECEIVE_JAR
"
$@
"
else
$RECEIVE_JAR
start
"
$@
"
fi
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论