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 HossMan
Date Mon, 21 Nov 2011 21:47:09 GMT
Dear Wiki user,

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

The "SolrTomcat" page has been changed by HossMan:
http://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=52&rev2=53

Comment:
small cleanup

  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 ===
- Skip this section if you have a binary distribution of Solr. These instructions are for
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/dev/trunk`.
 Assumes that you have [[http://java.sun.com|JDK 1.6]] already installed.
+ Skip this section if you have a binary distribution of Solr. These instructions are for
building [[https://www.apache.org/dyn/closer.cgi/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/dev/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.
  
  === Installing Solr instances under Tomcat ===
- 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 (??? this
sentence is cut off in the middle - please edit)
+ Assuming that Solr and its ''example'' are built, this is how to install the Solr example
as an instance under Tomcat.  
  
- 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''.
+ 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-*.war'' into ''$SOLR_HOME''
as ''solr.war''.
  
  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'':
  
@@ -46, +46 @@

    export JAVA_OPTS="$JAVA_OPTS -Dsolr.data.dir=/opt/solr/example/data"
  }}}
  
- Create a Tomcat Context fragment to point ''docBase'' to the ''$SOLR_HOME/apache-solr-1.3.0.war''
file and ''solr/home'' to ''$SOLR_HOME'':
+ Create a Tomcat Context fragment to point ''docBase'' to the ''$SOLR_HOME/solr.war'' file
and ''solr/home'' to ''$SOLR_HOME'':
  
  {{{
  <?xml version="1.0" encoding="utf-8"?>
- <Context docBase="/opt/solr/example/apache-solr-1.3.0.war" debug="0" crossContext="true">
+ <Context docBase="/opt/solr/example/solr.war" debug="0" crossContext="true">
    <Environment name="solr/home" type="java.lang.String" value="/opt/solr/example" override="true"/>
  </Context>
  }}}

Mime
View raw message