start_server.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
- # This shell file starts a web server and SAS
- # Please ensure that you have set the PATH variable before executing this script
- currDir=`pwd`
- CLASSPATH=
- export CLASSPATH
- . setallEnv.sh
- cd ..
- # Set the PATH
- PATH=${JAVA_HOME_DIR}/bin:${PATH}
- export PATH
- CLASSPATH=.:$SNMP_HOME/classes:$SNMP_HOME/jars/AdventNetSnmp.jar:$SNMP_HOME/jars/AdventNetLogging.jar:$SNMP_HOME/jars/AdventNetSAS.jar:$SNMP_HOME/jars/AdventNetHttpMibBrowser.jar:$SNMP_HOME/examples/sasapps/sasadvanced:$SNMP_HOME/tomcat/lib/ant.jar:$SNMP_HOME/tomcat/lib/jaxp.jar:$SNMP_HOME/tomcat/lib/servlet.jar:$SNMP_HOME/tomcat/lib/parser.jar:$SNMP_HOME/tomcat/lib/webserver.jar:$SNMP_HOME/tomcat/lib/jasper.jar:$JAVA_HOME/lib/tools.jar:$SNMP_HOME/jars/mysql_comp.jar:$CLASSPATH
-
- export CLASSPATH
- $JAVA_CMD -version
- $JAVA_CMD -Dtomcat.home=$SNMP_HOME/tomcat StartServer -class org.apache.tomcat.startup.Tomcat -class com.adventnet.snmp.sas.SAServer -server_client com.adventnet.snmp.sas.TestSvrClient
- # The following line can be uncommented in case of using examples
- # in the sasapps directory
- #$JAVA_CMD -Dtomcat.home=$SNMP_HOME/tomcat StartServer -class org.apache.tomcat.startup.Tomcat -class com.adventnet.snmp.sas.SAServer -server_client com.adventnet.snmp.sas.TestSvrClient -session_client com.adventnet.snmp.sas.TestSsnClient
- cd $currDir