Web项目启动脚本start.sh和环境脚本env.sh示例
start.sh#!/bin/sh. "$ZOOBINDIR"/env.shAPP_JAR_NAME="${build.finalName}.jar"current_path=`pwd`case "`uname`" inLinux)bin_abs_path=$(readlink -f $(dirname $0));;*)bin_abs_path=`c
·
start.sh
#!/bin/sh
. "$ZOOBINDIR"/env.sh
APP_JAR_NAME="${build.finalName}.jar"
current_path=`pwd`
case "`uname`" in
Linux)
bin_abs_path=$(readlink -f $(dirname $0))
;;
*)
bin_abs_path=`cd $(dirname $0); pwd`
;;
esac
nohup $JAVA_HOME/bin/java -jar $JAVA_OPTS $APP_JAR_NAME
env.sh
#!/bin/sh
JAVA_OPTS="-Xmx20m"
更多推荐
已为社区贡献10条内容
所有评论(0)