You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/05 20:28:30 UTC

[Solr Wiki] Update of "SolrTomcat" by YonikSeeley

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 YonikSeeley:
http://wiki.apache.org/solr/SolrTomcat

The comment on the change is:
update shell commands to install with tomcat

------------------------------------------------------------------------------
  This is only an issue when sending non-ascii characters in a query request... no configuration is needed for Solr/Tomcat to return non-ascii chars in a response, or accept non-ascii chars in an HTTP-POST body.
  
  === Simple Example Install ===
- If you are having problems with the setup, try the following sequence of shell commands to download and install both Tomcat and Solr.  Substitute todays date in the Solr download file name.
+ If you are having problems with the setup, try the following sequence of shell commands to download and install both Tomcat and Solr.
  
  {{{
+ #if you copy this to a shell script, make sure to run dos2unix on it to ensure correct line-endings
- ~/tmp> mkdir solr-tomcat
+ mkdir solr-tomcat
- ~/tmp> cd solr-tomcat/
+ cd solr-tomcat/
- ~/tmp/solr-tomcat> wget http://www.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-5/v5.5.17/bin/apache-tomcat-5.5.17.zip > & /dev/null
+ wget http://www.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.zip
- ~/tmp/solr-tomcat> wget http://people.apache.org/dist/lucene/solr/nightly/solr-2006-06-02.zip > & /dev/null
- ~/tmp/solr-tomcat> unzip apache-tomcat-5.5.17.zip > & /dev/null
- ~/tmp/solr-tomcat> unzip solr-2006-06-02.zip > & /dev/null
- ~/tmp/solr-tomcat> cp solr-nightly/dist/solr-nightly.war apache-tomcat-5.5.17/webapps/solr.war
- ~/tmp/solr-tomcat> cp -r solr-nightly/example/solr .
- ~/tmp/solr-tomcat> chmod a+x apache-tomcat-5.5.17/bin/*
+ NIGHTLY=solr-`/bin/date +%F`
+ wget http://people.apache.org/dist/lucene/solr/nightly/$NIGHTLY.zip
+ unzip apache-tomcat-5.5.20.zip
+ unzip $NIGHTLY.zip
+ cp apache-solr-nightly-incubating/dist/apache-solr-nightly-incubating.war apache-tomcat-5.5.20/webapps/solr.war
+ cp -r apache-solr-nightly-incubating/example/solr .
+ chmod a+x apache-tomcat-5.5.20/bin/*
- ~/tmp/solr-tomcat> ./apache-tomcat-5.5.17/bin/startup.sh
+ ./apache-tomcat-5.5.20/bin/startup.sh
- 
+ echo "Now browse to http://localhost:8080/solr/admin/"
  #note that the startup.sh script is run from the directory containing your solr home ./solr
  #since the solr webapp looks for $CWD/solr by default.
  }}}