From 095d71901b6444e5e0c725d3ad3443b86f49f6b2 Mon Sep 17 00:00:00 2001 From: jiahuiwen Date: Sat, 9 Oct 2021 14:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/run-core.sh | 9 +++++++++ conf/application.properties | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 bin/run-core.sh create mode 100644 conf/application.properties diff --git a/bin/run-core.sh b/bin/run-core.sh new file mode 100644 index 0000000..b5b6f67 --- /dev/null +++ b/bin/run-core.sh @@ -0,0 +1,9 @@ +#!/bin/sh +#by wk +source /etc/profile +export LANG="zh_CN.UTF-8" +BASE_DIR="/data/jieling/sensitiveWordFilter" +LOG_DIR="/data/jieling/sensitiveWordFilter/logs" + + +java -Dfile.encoding=UTF-8 -server -Xms2g -Xmx2g -Xss512K -XX:MaxMetaspaceSize=256m -XX:CompressedClassSpaceSize=64m -XX:+UseG1GC -XX:ParallelGCThreads=8 -XX:ConcGCThreads=4 -XX:NativeMemoryTracking=detail -verbose:gc -Xloggc:${LOG_DIR}/gc_core.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -Djava.ext.dirs=${BASE_DIR}/lib:$JAVA_HOME/jre/lib/ext -cp ${CLASSPATH} com.ljsd.SensitiveWordApplication --spring.config.location=${BASE_DIR}/conf/application.properties diff --git a/conf/application.properties b/conf/application.properties new file mode 100644 index 0000000..5b6f2be --- /dev/null +++ b/conf/application.properties @@ -0,0 +1,8 @@ +# redis config +spring.redis.host=60.1.1.21 +spring.redis.port=6379 +spring.redis.password= + +#core +services.core.ip=60.1.1.221 +services.core.port=5900 \ No newline at end of file