lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
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:

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
+ wget$TOMCAT_VER/bin/apache-tomcat-$
- NIGHTLY=solr-`/bin/date +%F`
+ #find the latest nightly solr build
+ NIGHTLY=`wget -O - | grep '.zip' |
sed 's/.*\(solr-20..-..-..\.zip\).*/\1/' | tail -1`
- wget$
+ wget$NIGHTLY
- unzip
+ unzip apache-tomcat-$
- unzip $
+ 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/
+ ./apache-tomcat-$TOMCAT_VER/bin/
  echo "Now browse to http://localhost:8080/solr/admin/"
  #Note that the script is run from the directory containing your solr home ./solr
  #since the solr webapp looks for $CWD/solr by default.

View raw message