043edb56 张雷

启动配置文件

1 个父辈 9edafe6e
1 1 server:
2 port: 8888
3 servlet:
4 context-path: /skreceive
2 # 应用服务 WEB 访问端口 5 # 应用服务 WEB 访问端口
3 spring: 6 spring:
4 datasource: 7 datasource:
5 druid: 8 druid:
6 url: jdbc:mysql://115.28.25.233:6630/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
7 username: jk_test
8 password: Jk_test1211rw
9 driver-class-name: com.mysql.jdbc.Driver 9 driver-class-name: com.mysql.jdbc.Driver
10 # url: jdbc:mysql://115.28.25.233:6630/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
11 # username: jk_test
12 # password: Jk_test1211rw
13 url: jdbc:mysql://127.0.0.1:13306/zhsw-bkyh?characterEncoding=UTF-8&useUnicode=true&useSSL=false
14 username: root
15 password: bkyh925.
10 16
11 redis: 17 redis:
12 port: 6379 18 port: 6379
...@@ -23,8 +29,3 @@ mybatis-plus: ...@@ -23,8 +29,3 @@ mybatis-plus:
23 # 开启日志 29 # 开启日志
24 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 30 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
25 31
26 server:
27 port: 8888
28 servlet:
29 context-path: /skreceive
30
......
1 #!/bin/bash
2
3 #
4 # Copyright (c) 2001-2019 kingtroldata, Ltd.
5 # All rights reserved.
6 #
7 # author: liyuanyuan (mailto:yuanyuan.li@kingtroldata.com)
8 #
9
10 ## resolve links
11 PRG="$0"
12
13 # need this for relative symlinks
14 while [ -h "$PRG" ] ; do
15 ls=`ls -ld "$PRG"`
16 link=`expr "$ls" : '.*-> \(.*\)$'`
17 if expr "$link" : '/.*' > /dev/null; then
18 PRG="$link"
19 else
20 PRG="`dirname "$PRG"`/$link"
21 fi
22 done
23
24 saveddir=`pwd`
25
26 SKRECEIVE_COMPONENT_HOME=`dirname "$PRG"`/..
27
28 # make it fully qualified
29 SKRECEIVE_COMPONENT_HOME=`cd "$SKRECEIVE_COMPONENT_HOME" && pwd`
30
31 cd "$saveddir"
32
33
34 SERVICE_NAME=skreceive
35
36 export MODE=service
37 export PID_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/logs
38 export LOG_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/logs
39 export identity=${SERVICE_NAME}
40 # export CONF_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/conf
41
42 # If exists private jdk
43 if [ -d "${SKRECEIVE_COMPONENT_HOME}/jdk" ] || [ -h "${SKRECEIVE_COMPONENT_HOME}/jdk" ] || [ -L "${SKRECEIVE_COMPONENT_HOME}/jdk" ]; then
44 export JAVA_HOME="${SKRECEIVE_COMPONENT_HOME}/jdk"
45 fi
46
47 RECEIVE_JAR=`echo "${SKRECEIVE_COMPONENT_HOME}"/*.jar`
48 if [ ! -x "${RECEIVE_JAR}" ]; then
49 chmod + "${RECEIVE_JAR}"
50 fi
51
52 $RECEIVE_JAR stop "$@"
53
1 #!/bin/bash
2
3 #
4 # Copyright (c) 2001-2019 kingtroldata, Ltd.
5 # All rights reserved.
6 #
7 # author: liyuanyuan (mailto:yuanyuan.li@kingtroldata.com)
8 #
9
10 ## resolve links
11 PRG="$0"
12
13 # need this for relative symlinks
14 while [ -h "$PRG" ] ; do
15 ls=`ls -ld "$PRG"`
16 link=`expr "$ls" : '.*-> \(.*\)$'`
17 if expr "$link" : '/.*' > /dev/null; then
18 PRG="$link"
19 else
20 PRG="`dirname "$PRG"`/$link"
21 fi
22 done
23
24 saveddir=`pwd`
25
26 SKRECEIVE_COMPONENT_HOME=`dirname "$PRG"`/..
27
28 # make it fully qualified
29 SKRECEIVE_COMPONENT_HOME=`cd "$SKRECEIVE_COMPONENT_HOME" && pwd`
30
31 cd "$saveddir"
32
33 # If you start multiple instances on a single host, you need to modify this service name to avoid conflicts.
34 SERVICE_NAME=skreceive
35
36 # 开启远程调试
37 SKRECEIVE_DEBUG_ENABLE=false
38
39 export MODE=service
40 export PID_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/logs
41 export LOG_FOLDER="${SKRECEIVE_COMPONENT_HOME}"/logs
42 export LOG_FILENAME="${SERVICE_NAME}.out"
43 export identity=${SERVICE_NAME}
44
45 if [ "x$SKRECEIVE_HEAP_OPTS" = "x" ]; then
46 SKRECEIVE_HEAP_OPTS="-Xms2048M -Xmx2048M"
47 fi
48
49 mkdir -p $LOG_FOLDER
50 #ln -s /dev/null $LOG_FOLDER/$LOG_FILENAME 2>/dev/null
51 #JAVA_OPTS="$JAVA_OPTS -Dlogging.file=$LOG_FOLDER/$SERVICE_NAME.log"
52 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"
53 JAVA_OPTS="$JAVA_OPTS $SKRECEIVE_HEAP_OPTS"
54 JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow"
55 JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC "
56 # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -Xloggc:$LOG_FOLDER/heap_trace.txt -XX:HeapDumpPath=$LOG_FOLDER/HeapDumpOnOutOfMemoryError/"
57 JAVA_OPTS="$JAVA_OPTS -Dlog.path=$LOG_FOLDER"
58
59 # if debug enabled
60 if [ 'trueX' == "${SKRECEIVE_DEBUG_ENABLE}X" ]; then
61 if [ -z "${SKRECEIVE_DEBUG_PORT}" ]; then
62 SKRECEIVE_DEBUG_PORT=8787
63 fi
64 JAVA_OPTS="${JAVA_OPTS} -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${SKBOOT_DEBUG_PORT}"
65 fi
66
67 export JAVA_OPTS
68
69 # If exists private jdk
70 if [ -d "${SKRECEIVE_COMPONENT_HOME}/jdk" ] || [ -h "${SKRECEIVE_COMPONENT_HOME}/jdk" ] || [ -L "${SKRECEIVE_COMPONENT_HOME}/jdk" ]; then
71 export JAVA_HOME="${SKRECEIVE_COMPONENT_HOME}/jdk"
72 fi
73
74
75 RECEIVE_JAR=`echo "${SKRECEIVE_COMPONENT_HOME}"/*.jar`
76 if [ ! -x "${RECEIVE_JAR}" ]; then
77 chmod + "${RECEIVE_JAR}"
78 fi
79 if [ "x$FOREGROUND" = "xtrue" ]; then
80 export MODE=run
81 $RECEIVE_JAR "$@"
82 else
83 $RECEIVE_JAR start "$@"
84 fi
85
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!