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 YonikSeeley
Date Sun, 07 Jun 2009 18:42:43 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 YonikSeeley:
http://wiki.apache.org/solr/SolrTomcat

The comment on the change is:
update tomcat version and fix script to find latest nightly build

------------------------------------------------------------------------------
  #if you copy this to a shell script, make sure to run dos2unix on it to ensure correct line-endings
  mkdir solr-tomcat
  cd solr-tomcat/
+ TOMCAT_VER=6.0.20
- wget http://mirrors.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
+ wget http://mirrors.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-6/v$TOMCAT_VER/bin/apache-tomcat-$TOMCAT_VER.zip
- NIGHTLY=solr-`/bin/date +%F`
+ #find the latest nightly solr build
+ NIGHTLY=`wget -O - http://people.apache.org/builds/lucene/solr/nightly/ | grep '.zip' |
sed 's/.*\(solr-20..-..-..\.zip\).*/\1/' | tail -1`
- wget http://people.apache.org/builds/lucene/solr/nightly/$NIGHTLY.zip
+ wget http://people.apache.org/builds/lucene/solr/nightly/$NIGHTLY
- unzip apache-tomcat-5.5.27.zip
+ unzip apache-tomcat-$TOMCAT_VER.zip
- unzip $NIGHTLY.zip
+ unzip $NIGHTLY
- cp apache-solr-nightly/dist/apache-solr-nightly.war apache-tomcat-5.5.27/webapps/solr.war
+ cp apache-solr-nightly/dist/apache-solr-nightly.war apache-tomcat-$TOMCAT_VER/webapps/solr.war
  cp -r apache-solr-nightly/example/solr .
- chmod a+x apache-tomcat-5.5.27/bin/*
+ chmod a+x apache-tomcat-$TOMCAT_VER/bin/*
- ./apache-tomcat-5.5.27/bin/startup.sh
+ ./apache-tomcat-$TOMCAT_VER/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.

Mime
View raw message