lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrTomcat" by GrahamPoulter
Date Thu, 17 Sep 2009 10:13:11 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by GrahamPoulter:
http://wiki.apache.org/solr/SolrTomcat

The comment on the change is:
Clarifications on building Solr

------------------------------------------------------------------------------
  
  == Simple Example Install ==
  
- === Install Tomcat 6 from source ===
+ === Installing Tomcat 6 ===
  
- [http://tomcat.apache.org/ Apache Tomcat] is a web application server for Java servlets.
 These are instructions for installing Tomcat 6 on Linux, assuming that the [http://java.sun.com
JDK 1.6] is already installed.
+ [http://tomcat.apache.org/ Apache Tomcat] is a web application server for Java servlets.
 These are instructions for manually installing Tomcat 6 on Linux, recommended because distribution
Tomcats are either old or quirky.
  
  Create the ''solr'' user.   As ''solr'', extract the [http://tomcat.apache.org/download-60.cgi
Tomcat 6.0 download]  into `/opt/tomcat6`, hereafter referred to as the  ''$CATALINA_HOME''
directory.  
  
@@ -26, +26 @@

  
  The startup script [attachment:tomcat6] can be placed in ''/etc/init.d/tomcat6'' on CentOS/RedHat/Fedora
so that you can start Tomcat using ''service tomcat6 start''.  Use ''chkconfig'' to enable
the tomcat6 service to start on boot.
  
- === Building Solr from Source ===
+ === Building Solr ===
  
- These instructions are for building [http://apache.is.co.za/lucene/solr Solr] from source,
in the case that you downloaded a source archive or have checked out the development version
from subversion at `http://svn.apache.org/repos/asf/lucene/solr/trunk`.  
+ Skip this section if you have a binary distribution of Solr. These instructions will building
[http://apache.is.co.za/lucene/solr Solr] from source, if you have a nightly tarball or have
checked out the trunk from subversion at `http://svn.apache.org/repos/asf/lucene/solr/trunk`.
 Assumes that you have [http://java.sun.com JDK 1.6] already installed.
  
  In the source directory, run `ant dist` to build the .war file under ''dist''.  Build the
example for the [http://lucene.apache.org/solr/tutorial.html Solr tutorial] by running `ant
example`.  Change to the 'example' directory, run ''java -jar start.jar'' and visit `localhost:8983/solr/admin`
to test that the example works with the  Jetty container.
  
@@ -36, +36 @@

  
  Assuming that Solr 1.3.0 and its ''example'' are built, this is how to install the Solr
example as an instance under Tomcat.  Multiple instances can run simultaneously, us
  
- Copy the ''example/solr'' directory from the source to the installation directory, such
as '/opt/solr/example'', referenced as $SOLR_HOME.  Copy the ''dist/apache-solr-1.3.0.war''
from the build into the $SOLR_HOME.
+ Copy the ''example/solr'' directory from the source to the installation directory like ''/opt/solr/example'',
herafter ''$SOLR_HOME''.  Copy the .war file ''dist/apache-solr-1.3.0.war'' into ''$SOLR_HOME''.
  
- The ''$SOLR_HOME/conf/solrconfig.xml'' from the example sets the ''dataDir'' for the index
to be ''./solr/data'' relative to the current directory - which is true for the Jetty server
shipped with the example, but incorrect for Tomcat running as a service.  Modify the ''dataDir''
to specify the full path to ''$SOLR_HOME/data'':
+ The configuration file ''$SOLR_HOME/conf/solrconfig.xml'' in the example sets ''dataDir''
for the index to be ''./solr/data'' relative to the current directory - which is true for
running the Jetty server provided with the example, but incorrect for Tomcat running as a
service.  Modify the ''dataDir'' to specify the full path to ''$SOLR_HOME/data'':
    
    {{{
    <dataDir>${solr.data.dir:/opt/solr/example/data}</dataDir>
@@ -59, +59 @@

  </Context>
  }}}
  
- Symlink or place the file in ''$CATALINA_HOME/conf/Catalina/localhost/solr-example.xml'',
where Tomcat will automatically pick it up.  Tomcat deletes the file or link on undeploy (which
happens automatically if the configuration is invalid).   
+ Symlink or place the file in ''$CATALINA_HOME/conf/Catalina/localhost/solr-example.xml'',
where Tomcat will automatically pick it up.  Tomcat deletes the file on undeploy (which happens
automatically if the configuration is invalid).   
  
  Repeat the above steps with different installation directories to run multiple instances
of Solr side-by-side.
  
@@ -72, +72 @@

  {{{
  export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/opt/solr/example"
  }}}
- 
  
  === Troubleshooting ===
  

Mime
View raw message