| <html><head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <title>7.5 Starting with a Custom Configuration Directory</title><link rel="stylesheet" href="css/stylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Virgo User Guide"><link rel="up" href="ch07.html" title="7. Starting and Stopping Virgo Server for Apache Tomcat"><link rel="prev" href="ch07s04.html" title="7.4 Starting with JMX Access Modifications"><link rel="next" href="ch07s06.html" title="7.6 Stopping Virgo Server for Apache Tomcat"><!--Begin Google Analytics code--><script type="text/javascript"> |
| var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
| document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
| </script><script type="text/javascript"> |
| var pageTracker = _gat._getTracker("UA-2728886-3"); |
| pageTracker._setDomainName("none"); |
| pageTracker._setAllowLinker(true); |
| pageTracker._trackPageview(); |
| </script><!--End Google Analytics code--></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">7.5 Starting with a Custom Configuration Directory</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07s04.html">Prev</a> </td><th width="60%" align="center">7. Starting and Stopping Virgo Server for Apache Tomcat</th><td width="20%" align="right"> <a accesskey="n" href="ch07s06.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="starting-stopping-configuration-directory"></a>7.5 Starting with a Custom Configuration Directory</h2></div></div></div><p> |
| Use the <code class="literal">-configDir</code> option to specify an alternate <code class="literal">configuration</code> directory, different from the |
| default <code class="literal">SERVER_HOME/configuration</code> directory. This option allows you to use the same Virgo Server for Apache Tomcat |
| installation to run multiple instances of VTS. Simply create a configuration directory for each |
| instance, specify unique port numbers, logging and tracing directories, and so on, and then specify that directory |
| when starting VTS. |
| </p><p> |
| If you specify a relative path for the <code class="literal">-configDir</code> parameter, |
| the startup script interprets the path as relative to the root of the Virgo Server for Apache Tomcat installation, |
| and not relative to the directory from which you execute the <code class="literal">startup</code> script. |
| </p><p> |
| See <a class="link" href="apbs04.html" title="B.4 Alternate serviceability and work Directories">Alternate <code class="literal">serviceability</code> and <code class="literal">work</code> |
| Directories</a> for a known issue related to specifying an alternate <code class="literal">configuration</code> directory. |
| </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="d0e1865"></a>Linux</h3></div></div></div> |
| To start Virgo Server for Apache Tomcat using a configuration directory of <code class="literal">/configuration/node1</code>: |
| <pre class="screen">prompt$ cd $SERVER_HOME |
| prompt$ bin/startup.sh -configDir /configuration/node1</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="d0e1874"></a>Windows</h3></div></div></div> |
| To start Virgo Server for Apache Tomcat using a configuration directory of <code class="literal">c:\configuration\node1</code>: |
| <pre class="screen">prompt> cd %SERVER_HOME% |
| prompt> bin\startup.bat -configDir c:\configuration\node1</pre></div></div><!--Begin LoopFuse code--><script src="http://loopfuse.net/webrecorder/js/listen.js" type="text/javascript"></script><script type="text/javascript"> |
| _lf_cid = "LF_48be82fa"; |
| _lf_remora(); |
| </script><!--End LoopFuse code--><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07s04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch07s06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">7.4 Starting with JMX Access Modifications </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 7.6 Stopping Virgo Server for Apache Tomcat</td></tr></table></div></body></html> |