Created
July 20, 2015 06:36
-
-
Save zhoumengkang/72158f4d3677f2158982 to your computer and use it in GitHub Desktop.
netty 项目启动脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps -ef|grep [h]ujia |awk '{printf "kill -9 %d",$2}'|sh | |
cd /xxx/hujia/ | |
CLASSPATH="." | |
for jar in `ls ./lib` | |
do | |
CLASSPATH="$CLASSPATH:./lib/$jar" | |
done | |
CLASSPATH="./classes:$CLASSPATH" | |
echo $CLASSPATH | |
export CLASSPATH | |
JAVA_OPTS='-Xms8000m -Xmx8000m -XX:+PrintGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails' | |
nohup java $JAVA_OPTS -Dapp.name=hujia -Dapp.base=$PWD me.topit.site.netty.HujiaWeixinServer >> /data0/logs/hujia/hujia.out 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment