ASF Bugzilla – Attachment 30331 Details for
Bug 54931
Updates to windows-service-howto to include support for installing multiple windows services
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
xml diff file as requested
windows-service-howto.diff.txt (text/plain), 3.19 KB, created by
chris
on 2013-05-27 22:57:13 UTC
(
hide
)
Description:
xml diff file as requested
Filename:
MIME Type:
Creator:
chris
Created:
2013-05-27 22:57:13 UTC
Size:
3.19 KB
patch
obsolete
>Index: windows-service-howto.xml >=================================================================== >--- windows-service-howto.xml (revision 1486719) >+++ windows-service-howto.xml (working copy) >@@ -320,7 +320,14 @@ > C:\> service.bat install > </source> > </p> >+<p>There is a 2nd optional parameter that lets you specify the name of the service, as displayed in Windows services</p> > <p> >+<source> >+Install the service named 'MyService' >+C:\> service.bat install MyService >+</source> >+</p> >+<p> > If using tomcat7.exe, you need to use the <b>//IS//</b> parameter. > </p> > <p> >@@ -345,6 +352,14 @@ > C:\> --Startup=auto --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar > </source> > </p> >+<p>If you gave the service an optional name, you need to specify it like this</p> >+<p> >+<source> >+Update the service named 'MyService' >+C:\> tomcat7 //US//MyService --Description="Apache Tomcat Server - http://tomcat.apache.org/ " \ >+C:\> --Startup=auto --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar >+</source> >+</p> > </section> > <section name="Removing services"> > <p> >@@ -357,6 +372,13 @@ > C:\> tomcat7 //DS//Tomcat7 > </source> > </p> >+<p>If you gave the service an optional name, you need to specify it like this</p> >+<p> >+<source> >+Remove the service named 'MyService' >+C:\> tomcat7 //DS//MyService >+</source> >+</p> > </section> > <section name="Debugging services"> > <p> >@@ -375,5 +397,51 @@ > </source> > </p> > </section> >+<section name="Multiple Instances"> >+<p> >+Tomcat supports installation of multiple instances. You can have a single installation of tomcat with multiple instances running on different IP/Port combinations, or multiple tomcat versions, each running 1 or more instances on different IP/Ports. >+</p> >+<p> >+Each Instance folder will need the following structure >+</p> >+<ul> >+<li>conf</li> >+<li>logs</li> >+<li>temp</li> >+<li>webapps</li> >+</ul> >+<p> >+At a minimum, conf should contain a copy of the following files from CATALINA_HOME\conf\server.xml. Any files not copied and edited, will be picked up by default from CATALINA_HOME\conf, i.e. CATALINA_BASE\conf files override defaults from CATALINA_HOME\conf. >+</p> >+<ul> >+<li>server.xml</li> >+<li>web.xml</li> >+</ul> >+<p> >+You must edit CATALINA_BASE\conf\server.xml to specify a unique IP/port for the instance to listen on. Find the line that contains <pre><Connector port="8080"</pre> and update the port number so as to specify a unique port >+</p> >+<p> >+To install an instance, first set the CATALINA_HOME environment variable to the name of the tomcat directory. Then create a second environment variable CATALINA_BASE and point this to the instance folder. Then run "service install" command specifying a service name >+</p> >+<p> >+<source> >+set CATALINA_HOME=c:\tomcat_7 >+set CATALINA_BASE=c:\tomcat_7\instances\instance1 >+service install instance1 >+</source> >+</p> >+<p> >+To modify the service settings, you can run <b>tomcat7w //ES//instance1</b> >+</p> >+<p> >+For additional instances, create additional instance folder, update the CATALINA_BASE environment variable, and run the service install again >+</p> >+<p> >+<source> >+set CATALINA_BASE=c:\tomcat_7\instances\instance2 >+service install instance2 >+</source> >+</p> >+</section> > </body> > </document>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54931
:
30257
| 30331