sudo service tomcat8 start //启动Tomcat服务 sudo service tomcat8 stop //关闭Tomcat服务 sudo service tomcat8 status //查看Tomcat服务状态 sudo service tomcat8 restart //重启Tomcat服务
#------------------------------------------------------------------------------- # - JAVA_HOME Full Path to Java Installation Root # - JAVA Full Path to java binary (to enable 64bit JDK) # - JAVA_OPTS Java options (e.g. for JVM memory increase #------------------------------------------------------------------------------- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JRE_HOME=$JAVA_HOME/jre JAVA_BIN=$JAVA_HOME/bin CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export JAVA_HOME JRE_HOME PATH CLASSPATH
#------------------------------------------------------------------------------- # - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution # - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area # - EXUBERANT_CTAGS Full Path to Exuberant CTags # - OPENGROK_CTAGS_OPTIONS_FILE Full path to file with extra command line # options for CTags program (for its --options #------------------------------------------------------------------------------- # opengrok home directory export OPENGROK_INSTANCE_BASE=/opt/opengrok export SCRIPT_DIRECTORY=$OPENGROK_INSTANCE_BASE/bin export OPENGROK_DISTRIBUTION_BASE=$OPENGROK_INSTANCE_BASE/lib
<context-param> <param-name>CONFIGURATION</param-name> <param-value>/opt/opengrok/etc/configuration.xml</param-value> <description>Full path to the configuration file where OpenGrok can read it's configuration</description> </context-param>