Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame^] | 1 | <html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Apache Tomcat 6.0 (6.0.39) - Windows service HOW-TO</title><meta name="author" content="Mladen Turk"><style type="text/css" media="print">
|
| 2 | .noPrint {display: none;}
|
| 3 | td#mainBody {width: 100%;}
|
| 4 | </style></head><body bgcolor="#ffffff" text="#000000" link="#525D76" alink="#525D76" vlink="#525D76"><table border="0" width="100%" cellspacing="0"><!--PAGE HEADER--><tr><td><!--PROJECT LOGO--><a href="http://tomcat.apache.org/"><img src="./images/tomcat.gif" align="right" alt="
|
| 5 | The Apache Tomcat Servlet/JSP Container
|
| 6 | " border="0"></a></td><td><h1><font face="arial,helvetica,sanserif">Apache Tomcat 6.0</font></h1><font face="arial,helvetica,sanserif">Version 6.0.39, Jan 27 2014</font></td><td><!--APACHE LOGO--><a href="http://www.apache.org/"><img src="./images/asf-logo.gif" align="right" alt="Apache Logo" border="0"></a></td></tr></table><table border="0" width="100%" cellspacing="4"><!--HEADER SEPARATOR--><tr><td colspan="2"><hr noshade="noshade" size="1"></td></tr><tr><!--LEFT SIDE NAVIGATION--><td width="20%" valign="top" nowrap="nowrap" class="noPrint"><p><strong>Links</strong></p><ul><li><a href="index.html">Docs Home</a></li><li><a href="http://wiki.apache.org/tomcat/FAQ">FAQ</a></li></ul><p><strong>User Guide</strong></p><ul><li><a href="introduction.html">1) Introduction</a></li><li><a href="setup.html">2) Setup</a></li><li><a href="appdev/index.html">3) First webapp</a></li><li><a href="deployer-howto.html">4) Deployer</a></li><li><a href="manager-howto.html">5) Manager</a></li><li><a href="realm-howto.html">6) Realms and AAA</a></li><li><a href="security-manager-howto.html">7) Security Manager</a></li><li><a href="jndi-resources-howto.html">8) JNDI Resources</a></li><li><a href="jndi-datasource-examples-howto.html">9) JDBC DataSources</a></li><li><a href="class-loader-howto.html">10) Classloading</a></li><li><a href="jasper-howto.html">11) JSPs</a></li><li><a href="ssl-howto.html">12) SSL</a></li><li><a href="ssi-howto.html">13) SSI</a></li><li><a href="cgi-howto.html">14) CGI</a></li><li><a href="proxy-howto.html">15) Proxy Support</a></li><li><a href="mbeans-descriptor-howto.html">16) MBean Descriptor</a></li><li><a href="default-servlet.html">17) Default Servlet</a></li><li><a href="cluster-howto.html">18) Clustering</a></li><li><a href="balancer-howto.html">19) Load Balancer</a></li><li><a href="connectors.html">20) Connectors</a></li><li><a href="monitoring.html">21) Monitoring and Management</a></li><li><a href="logging.html">22) Logging</a></li><li><a href="apr.html">23) APR/Native</a></li><li><a href="virtual-hosting-howto.html">24) Virtual Hosting</a></li><li><a href="aio.html">25) Advanced IO</a></li><li><a href="extras.html">26) Additional Components</a></li><li><a href="maven-jars.html">27) Mavenized</a></li></ul><p><strong>Reference</strong></p><ul><li><a href="RELEASE-NOTES.txt">Release Notes</a></li><li><a href="config/index.html">Configuration</a></li><li><a href="api/index.html">Javadocs</a></li><li><a href="http://tomcat.apache.org/connectors-doc/">JK 1.2 Documentation</a></li></ul><p><strong>Apache Tomcat Development</strong></p><ul><li><a href="building.html">Building</a></li><li><a href="changelog.html">Changelog</a></li><li><a href="http://wiki.apache.org/tomcat/TomcatVersions">Status</a></li><li><a href="developers.html">Developers</a></li><li><a href="architecture/index.html">Architecture</a></li><li><a href="funcspecs/index.html">Functional Specs.</a></li></ul></td><!--RIGHT SIDE MAIN BODY--><td width="80%" valign="top" align="left" id="mainBody"><h1>Apache Tomcat 6.0</h1><h2>Windows service HOW-TO</h2><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Table of Contents"><!--()--></a><a name="Table_of_Contents"><strong>Table of Contents</strong></a></font></td></tr><tr><td><blockquote>
|
| 7 | <ul><li><a href="#Tomcat6_service_application">Tomcat6 service application</a></li><li><a href="#Tomcat6w_monitor_application">Tomcat6w monitor application</a></li><li><a href="#Command_line_arguments">Command line arguments</a></li><li><a href="#Command_line_parameters">Command line parameters</a></li><li><a href="#Installing_services">Installing services</a></li><li><a href="#Updating_services">Updating services</a></li><li><a href="#Removing_services">Removing services</a></li><li><a href="#Debugging_services">Debugging services</a></li></ul>
|
| 8 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Tomcat6 service application"><!--()--></a><a name="Tomcat6_service_application"><strong>Tomcat6 service application</strong></a></font></td></tr><tr><td><blockquote>
|
| 9 | <p>
|
| 10 | <b>Tomcat6</b> is a service application for running Tomcat6 as NT service.
|
| 11 | </p>
|
| 12 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Tomcat6w monitor application"><!--()--></a><a name="Tomcat6w_monitor_application"><strong>Tomcat6w monitor application</strong></a></font></td></tr><tr><td><blockquote>
|
| 13 | <p>
|
| 14 | <b>Tomcat6w</b> is a GUI application for monitoring and configuring Tomcat
|
| 15 | services.
|
| 16 | </p>
|
| 17 | <p>The available command line options are:</p>
|
| 18 | <p>
|
| 19 | <table>
|
| 20 | <tr><th>//ES//</th>
|
| 21 | <td>Edit service configuration</td>
|
| 22 | <td>This is the default operation. It is called if the no option is
|
| 23 | provided but the executable is renamed to <b>servicenameW.exe</b></td>
|
| 24 | </tr>
|
| 25 | <tr><th>//MS//</th>
|
| 26 | <td>Monitor service</td>
|
| 27 | <td>Put the icon in the system tray</td>
|
| 28 | </tr>
|
| 29 | </table>
|
| 30 | </p>
|
| 31 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Command line arguments"><!--()--></a><a name="Command_line_arguments"><strong>Command line arguments</strong></a></font></td></tr><tr><td><blockquote>
|
| 32 | <p>
|
| 33 | Each command line directive is in the form of <b>//XX//ServiceName</b>
|
| 34 | </p>
|
| 35 | <p>The available command line options are:</p>
|
| 36 | <p>
|
| 37 | <table>
|
| 38 | <tr><th>//TS//</th>
|
| 39 | <td>Run the service as console application</td>
|
| 40 | <td>This is the default operation. It is called if the no option is
|
| 41 | provided. The ServiceName is the name of the executable without
|
| 42 | exe suffix, meaning Tomcat6</td>
|
| 43 | </tr>
|
| 44 | <tr><th>//RS//</th>
|
| 45 | <td>Run the service</td>
|
| 46 | <td>Called only from ServiceManager</td>
|
| 47 | </tr>
|
| 48 | <tr><th>//SS//</th>
|
| 49 | <td>Stop the service</td>
|
| 50 | <td></td>
|
| 51 | </tr>
|
| 52 | <tr><th>//US//</th>
|
| 53 | <td>Update service parameters</td>
|
| 54 | <td></td>
|
| 55 | </tr>
|
| 56 | <tr><th>//IS//</th>
|
| 57 | <td>Install service</td>
|
| 58 | <td></td>
|
| 59 | </tr>
|
| 60 | <tr><th>//DS//</th>
|
| 61 | <td>Delete service</td>
|
| 62 | <td>Stops the service if running</td>
|
| 63 | </tr>
|
| 64 | </table>
|
| 65 | </p>
|
| 66 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Command line parameters"><!--()--></a><a name="Command_line_parameters"><strong>Command line parameters</strong></a></font></td></tr><tr><td><blockquote>
|
| 67 | <p>
|
| 68 | Each command parameter is prefixed with <b>--</b>.
|
| 69 | If the command line is prefixed with <b>++</b> then it's value will
|
| 70 | be appended to the existing option.
|
| 71 | If the environment variable with the same name as command line parameter but
|
| 72 | prefixed with <code>PR_</code> exists it will take precedence.
|
| 73 | For example:
|
| 74 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>set PR_CLASSPATH=xx.jar</pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 75 | </p>
|
| 76 | <p>is equivalent to providing
|
| 77 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>--Classpath=xx.jar</pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 78 | </p>
|
| 79 | <p> as command line parameter.</p>
|
| 80 | <p>
|
| 81 | <table>
|
| 82 | <tr>
|
| 83 | <th>ParameterName</th>
|
| 84 | <th>Default</th>
|
| 85 | <th>Description</th>
|
| 86 | </tr>
|
| 87 | <tr>
|
| 88 | <td>--Description</td>
|
| 89 | <td></td>
|
| 90 | <td>Service name description (maximum 1024 characters)</td>
|
| 91 | </tr>
|
| 92 | <tr>
|
| 93 | <td>--DisplayName</td>
|
| 94 | <td>ServiceName</td>
|
| 95 | <td>Service display name</td>
|
| 96 | </tr>
|
| 97 | <tr>
|
| 98 | <td>--Install</td>
|
| 99 | <td>procrun.exe //RS//ServiceName</td>
|
| 100 | <td>Install image</td>
|
| 101 | </tr>
|
| 102 | <tr>
|
| 103 | <td>--Startup</td>
|
| 104 | <td>manual</td>
|
| 105 | <td>Service startup mode can be either <b>auto</b> or <b>manual</b></td>
|
| 106 | </tr>
|
| 107 | <tr>
|
| 108 | <td>--DependsOn</td>
|
| 109 | <td></td>
|
| 110 | <td>List of services that this service depend on. Dependent services
|
| 111 | are separated using either <b>#</b> or <b>;</b> characters</td>
|
| 112 | </tr>
|
| 113 | <tr>
|
| 114 | <td>--Environment</td>
|
| 115 | <td></td>
|
| 116 | <td>List of environment variables that will be provided to the service
|
| 117 | in the form <b>key=value</b>. They are separated using either
|
| 118 | <b>#</b> or <b>;</b> characters. If you need to use either the <b>#</b>
|
| 119 | or <b>;</b> character within a value then the entire value must be
|
| 120 | enclosed inside single quotes.</td>
|
| 121 | </tr>
|
| 122 | <tr>
|
| 123 | <td>--User</td>
|
| 124 | <td></td>
|
| 125 | <td>User account used for running executable. It is used only for
|
| 126 | StartMode <b>java</b> or <b>exe</b> and enables running applications
|
| 127 | as service under account without LogonAsService privilege.</td>
|
| 128 | </tr>
|
| 129 | <tr>
|
| 130 | <td>--Password</td>
|
| 131 | <td></td>
|
| 132 | <td>Password for user account set by --User parameter</td>
|
| 133 | </tr>
|
| 134 | <tr>
|
| 135 | <td>--JavaHome</td>
|
| 136 | <td>JAVA_HOME</td>
|
| 137 | <td>Set a different JAVA_HOME than defined by JAVA_HOME environment
|
| 138 | variable</td>
|
| 139 | </tr>
|
| 140 | <tr>
|
| 141 | <td>--Jvm</td>
|
| 142 | <td>auto</td>
|
| 143 | <td>Use either <b>auto</b> or specify the full path to the <b>jvm.dll</b>.
|
| 144 | You can use the environment variable expansion here.</td>
|
| 145 | </tr>
|
| 146 | <tr>
|
| 147 | <td>--JvmOptions</td>
|
| 148 | <td>-Xrs</td>
|
| 149 | <td>List of options in the form of <b>-D</b> or <b>-X</b> that will be
|
| 150 | passed to the JVM. The options are separated using either
|
| 151 | <b>#</b> or <b>;</b> characters.</td>
|
| 152 | </tr>
|
| 153 | <tr>
|
| 154 | <td>--Classpath</td>
|
| 155 | <td></td>
|
| 156 | <td>Set the Java classpath</td>
|
| 157 | </tr>
|
| 158 | <tr>
|
| 159 | <td>--JvmMs</td>
|
| 160 | <td></td>
|
| 161 | <td>Initial memory pool size in MB</td>
|
| 162 | </tr>
|
| 163 | <tr>
|
| 164 | <td>--JvmMx</td>
|
| 165 | <td></td>
|
| 166 | <td>Maximum memory pool size in MB</td>
|
| 167 | </tr>
|
| 168 | <tr>
|
| 169 | <td>--JvmSs</td>
|
| 170 | <td></td>
|
| 171 | <td>Thread stack size in KB</td>
|
| 172 | </tr>
|
| 173 | <tr>
|
| 174 | <tr>
|
| 175 | <td>--StartImage</td>
|
| 176 | <td></td>
|
| 177 | <td>Executable that will be run.</td>
|
| 178 | </tr>
|
| 179 | <tr>
|
| 180 | <td>--StartPath</td>
|
| 181 | <td></td>
|
| 182 | <td>Working path for the start image executable.</td>
|
| 183 | </tr>
|
| 184 | <tr>
|
| 185 | <td>--StartClass</td>
|
| 186 | <td></td>
|
| 187 | <td>Class that will be used for startup.</td>
|
| 188 | </tr>
|
| 189 | <tr>
|
| 190 | <td>--StartParams</td>
|
| 191 | <td></td>
|
| 192 | <td>List of parameters that will be passed to either StartImage or
|
| 193 | StartClass. Parameters are separated using either <b>#</b> or
|
| 194 | <b>;</b> character.</td>
|
| 195 | </tr>
|
| 196 | <tr>
|
| 197 | <td>--StartMethod</td>
|
| 198 | <td>Main</td>
|
| 199 | <td>Method name if differs then main</td>
|
| 200 | </tr>
|
| 201 | <tr>
|
| 202 | <td>--StartMode</td>
|
| 203 | <td>executable</td>
|
| 204 | <td>Can one of <b>jvm</b> <b>java</b> or <b>exe</b></td>
|
| 205 | </tr>
|
| 206 | <td>--StopImage</td>
|
| 207 | <td></td>
|
| 208 | <td>Executable that will be run on Stop service signal.</td>
|
| 209 | </tr>
|
| 210 | <tr>
|
| 211 | <td>--StopPath</td>
|
| 212 | <td></td>
|
| 213 | <td>Working path for the stop image executable.</td>
|
| 214 | </tr>
|
| 215 | <tr>
|
| 216 | <td>--StopClass</td>
|
| 217 | <td></td>
|
| 218 | <td>Class that will be used on Stop service signal.</td>
|
| 219 | </tr>
|
| 220 | <tr>
|
| 221 | <td>--StopParams</td>
|
| 222 | <td></td>
|
| 223 | <td>List of parameters that will be passed to either StopImage or
|
| 224 | StopClass. Parameters are separated using either <b>#</b> or
|
| 225 | <b>;</b> character.</td>
|
| 226 | </tr>
|
| 227 | <tr>
|
| 228 | <td>--StopMethod</td>
|
| 229 | <td>Main</td>
|
| 230 | <td>Method name if differs then main</td>
|
| 231 | </tr>
|
| 232 | <tr>
|
| 233 | <td>--StopMode</td>
|
| 234 | <td>executable</td>
|
| 235 | <td>Can one of <b>jvm</b> <b>java</b> or <b>exe</b></td>
|
| 236 | </tr>
|
| 237 | <tr>
|
| 238 | <td>--StopTimeout</td>
|
| 239 | <td>No Timeout</td>
|
| 240 | <td>Defines the timeout in seconds that procrun waits for service to
|
| 241 | exit gracefully.</td>
|
| 242 | </tr>
|
| 243 | <tr>
|
| 244 | <td>--LogPath</td>
|
| 245 | <td>working path</td>
|
| 246 | <td>Defines the path for logging</td>
|
| 247 | </tr>
|
| 248 | <tr>
|
| 249 | <td>--LogPrefix</td>
|
| 250 | <td>jakarta_service</td>
|
| 251 | <td>Defines the service log filename</td>
|
| 252 | </tr>
|
| 253 | <tr>
|
| 254 | <td>--LogLevel</td>
|
| 255 | <td>INFO</td>
|
| 256 | <td>Defines the logging level and can be either <b>error</b>,
|
| 257 | <b>info</b>, <b>warn</b> or <b>debug</b></td>
|
| 258 | </tr>
|
| 259 | <tr>
|
| 260 | <td>--StdOutput</td>
|
| 261 | <td></td>
|
| 262 | <td>Redirected stdout filename</td>
|
| 263 | </tr>
|
| 264 | <tr>
|
| 265 | <td>--StdError</td>
|
| 266 | <td></td>
|
| 267 | <td>Redirected stderr filename</td>
|
| 268 | </tr>
|
| 269 | </table>
|
| 270 | </p>
|
| 271 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Installing services"><!--()--></a><a name="Installing_services"><strong>Installing services</strong></a></font></td></tr><tr><td><blockquote>
|
| 272 | <p>
|
| 273 | The safest way to manually install the service is to use the provided
|
| 274 | <b>service.bat</b> script. Administrator privileges are required to run this
|
| 275 | script.
|
| 276 | </p>
|
| 277 | <p>
|
| 278 | <strong>NOTE:</strong> On Windows Vista or any other operating system with User
|
| 279 | Account Control (UAC) you must either disable UAC or right-click on cmd.exe and
|
| 280 | select "Run as administrator" in order to run this script. If UAC is enabled
|
| 281 | being logged on with an Administrator account is not sufficient.
|
| 282 | </p>
|
| 283 | <p>
|
| 284 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>
|
| 285 | Install the service named 'Tomcat6'
|
| 286 | C:\> service.bat install
|
| 287 | </pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 288 | </p>
|
| 289 | <p>
|
| 290 | If using tomcat6.exe, you need to use the <b>//IS//</b> parameter.
|
| 291 | </p>
|
| 292 | <p>
|
| 293 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>
|
| 294 | Install the service named 'Tomcat6'
|
| 295 | C:\> tomcat6 //IS//Tomcat6 --DisplayName="Apache Tomcat 6" \
|
| 296 | C:\> --Install="C:\Program Files\Tomcat\bin\tomcat6.exe" --Jvm=auto \
|
| 297 | C:\> --StartMode=jvm --StopMode=jvm \
|
| 298 | C:\> --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start \
|
| 299 | C:\> --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop
|
| 300 | </pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 301 | </p>
|
| 302 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Updating services"><!--()--></a><a name="Updating_services"><strong>Updating services</strong></a></font></td></tr><tr><td><blockquote>
|
| 303 | <p>
|
| 304 | To update the service parameters, you need to use the <b>//US//</b> parameter.
|
| 305 | </p>
|
| 306 | <p>
|
| 307 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>
|
| 308 | Update the service named 'Tomcat6
|
| 309 | C:\> tomcat6 //US//Tomcat6 --Description="Apache Tomcat Server - http://tomcat.apache.org/ " \
|
| 310 | C:\> --Startup=auto --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar
|
| 311 | </pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 312 | </p>
|
| 313 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Removing services"><!--()--></a><a name="Removing_services"><strong>Removing services</strong></a></font></td></tr><tr><td><blockquote>
|
| 314 | <p>
|
| 315 | To remove the service, you need to use the <b>//DS//</b> parameter.<br>
|
| 316 | If the service is running it will be stopped and then deleted.
|
| 317 | </p>
|
| 318 | <p>
|
| 319 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>
|
| 320 | Remove the service named 'Tomcat6'
|
| 321 | C:\> tomcat6 //DS//Tomcat6
|
| 322 | </pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 323 | </p>
|
| 324 | </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Debugging services"><!--()--></a><a name="Debugging_services"><strong>Debugging services</strong></a></font></td></tr><tr><td><blockquote>
|
| 325 | <p>
|
| 326 | To run the service in console mode, you need to use the <b>//TS//</b> parameter.
|
| 327 | The service shutdown can be initiated by pressing <b>CTRL+C</b> or
|
| 328 | <b>CTRL+BREAK</b>.
|
| 329 | If you rename the tomcat6.exe to testservice.exe then you can just execute the
|
| 330 | testservice.exe and this command mode will be executed by default.
|
| 331 | </p>
|
| 332 | <p>
|
| 333 | <div align="left"><table cellspacing="4" cellpadding="0" border="0"><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#ffffff" height="1"><pre>
|
| 334 | Run the service named 'Tomcat6' in console mode
|
| 335 | C:\> tomcat6 //TS//Tomcat6 [additional arguments]
|
| 336 | Or simply execute:
|
| 337 | C:\> tomcat6
|
| 338 | </pre></td><td bgcolor="#023264" width="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr><tr><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td><td bgcolor="#023264" width="1" height="1"><img src="./images/void.gif" alt="" width="1" height="1" vspace="0" hspace="0" border="0"></td></tr></table></div>
|
| 339 | </p>
|
| 340 | </blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr noshade="noshade" size="1"></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font color="#525D76" size="-1"><em>
|
| 341 | Copyright © 1999-2014, Apache Software Foundation
|
| 342 | </em></font></div></td></tr></table></body></html> |