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