SOLR 4.10.4

* Stop tomcat

service tomcat7 stop

* Get solr.war

tar -xvzf solr-4.10.4.tgz
cp solr-4.10.4/dist/solr-4.10.4.war /var/lib/tomcat7/webapps/solr.war
chown tomcat7:tomcat7 /var/lib/tomcat7/webapps/solr.war

* Prepare solr home

mkdir /usr/local/solr
cp -R solr-4.10.4/example/solr/* /usr/local/solr/
cd /usr/local/solr/
mv collection1 islandora
nano -w islandora/


chown -R tomcat7:tomcat7 /usr/local/solr

ln -s /usr/local/solr /var/lib/tomcat7/solr

* Set data dir

mkdir /srv/solr
mkdir /srv/solr/data
chown -R tomcat7 /srv/solr

nano -w islandora/conf/solrconfig.xml
  <!-- Data Directory
       Used to specify an alternate directory to hold all index data
       other than the default ./data under the Solr home.  If
       replication is in use, this should match the replication

* Deploy then stop tomcat

service tomcat7 start
service tomcat7 stop

* Set logger

cp solr-4.10.4/example/lib/ext/* /var/lib/tomcat7/webapps/solr/WEB-INF/lib/
chown tomcat7:tomcat7 /var/lib/tomcat7/webapps/solr/WEB-INF/lib/*
mkdir /var/lib/tomcat7/webapps/solr/WEB-INF/classes
cp solr-4.10.4/example/resources/ /var/lib/tomcat7/webapps/solr/WEB-INF/classes/
nano -w /var/lib/tomcat7/webapps/solr/WEB-INF/classes/

#  Logging level

chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapps/solr/WEB-INF/classes

* Set access policy

nano -w /var/lib/tomcat7/webapps/solr/WEB-INF/web.xml
      <filter-name>Remote Address Filter</filter-name>
      <filter-name>Remote Address Filter</filter-name>

* Start tomcat

service tomcat7 start
repo381/solr410.txt ยท Last modified: 2015/11/16 16:24 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ and Anna Perin (anna.perin _@_
ASA@TO.CNR is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki