generated from root/miduo_server
敏感字服重启脚本
parent
806e4468d3
commit
f2b5156261
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
#by wk
|
||||
source /etc/profile
|
||||
export LANG="zh_CN.UTF-8"
|
||||
BASE_DIR="/data/jieling/sensitiveWordFilter"
|
||||
LOG_DIR="/data/jieling/sensitiveWordFilter/logs"
|
||||
|
||||
pid=`ps -ef|grep java|grep "SensitiveWord"|awk '{print $2}'`
|
||||
kill $pid
|
||||
sleep 5
|
||||
|
||||
nohup java -Dfile.encoding=UTF-8 -server -Xms1g -Xmx1g -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 >> corelog.log 2>&1 &
|
Loading…
Reference in New Issue