043edb56 张雷

启动配置文件

1 个父辈 9edafe6e
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
......
#!/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 "$@"
#!/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!