java program startup script

echo STARTUP App
echo Set environment variables, cycle all jar files in the lib directory in the current directory, and set CLASSPATH

export LIB_PATH=./libs;

TMPCLASSPAT='';

for i in `ls $LIB_PATH/*.jar` ; do
        TMPCLASSPATH =$i:$TMPCLASSPATH
done
echo $TMPCLASSPATH

echo The bin directory in the current directory is the class file storage directory, set the bin directory to the CLASSPATH

export CLASSPATH=$TMPCLASSPATH:./bin:

echo Show CLASSPATH
echo $CLASSPATH
echo Run the application
java -Xms512m -Xmx1024m -server com.bhu.vas.business.backendcommdity.BackendCommdityMain | cronolog /BHUData/logs/backendcommdity/backendcommdity.out.%Y-%m-%d >> /dev/null &

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326529953&siteId=291194637