diff --git a/script/assembly/collector/bin/startup.sh b/script/assembly/collector/bin/startup.sh index c20213b7fd1..5b48adce441 100644 --- a/script/assembly/collector/bin/startup.sh +++ b/script/assembly/collector/bin/startup.sh @@ -99,7 +99,7 @@ echo -e "Starting the HertzBeat $SERVER_NAME ..." if [ -f "./java/bin/java" ]; then echo -e "Use the inner package jdk to start" - nohup ./java/bin/java $JAVA_OPTS $JAVA_MEM_OPTS $CONFIG_FILES $CLASSPATH $MAIN_CLASS >logs/startup.log 2>&1 & + nohup ./java/bin/java $JAVA_OPTS $JAVA_MEM_OPTS $CONFIG_FILES -cp $CLASSPATH $MAIN_CLASS >logs/startup.log 2>&1 & else JAVA_EXIST=`which java | grep bin | wc -l` if [ $JAVA_EXIST -le 0 ]; then @@ -107,7 +107,7 @@ else exit 1 fi echo -e "Use the system environment jdk to start" - nohup java $JAVA_OPTS $JAVA_MEM_OPTS $CONFIG_FILES $CLASSPATH $MAIN_CLASS >logs/startup.log 2>&1 & + nohup java $JAVA_OPTS $JAVA_MEM_OPTS $CONFIG_FILES -cp $CLASSPATH $MAIN_CLASS >logs/startup.log 2>&1 & fi COUNT=0