Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[nul_public]
name=NUL Library Public RHEL repository
baseurl=http://yumrepo-public.library.northwestern.edu/x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nul
cost=150

 

NUL yumrepo GPG key

/etc/pki/rpm-gpg/RPM-GPG-KEY-nul
http://yumrepo-public.library.northwestern.edu/RPM-GPG-KEY-nul

...

Stop iptables

service iptables stop

Development Libraries

yum groupinstall “Development Tools”

Ruby development packages for building Ruby:

yum install readline-devel zlib-devel libyaml-devel libffi-devel openssl-devel libxml2-devel libxslt-devel

...

Tomcat

Install Apache Tomcat with the nulrepo-public repository configured and enabled.  For this package, JAVA_OPT and environment variables are sourced from /etc/sysconfig/ yum install

yum install tomcat
service tomcat start

Change the Tomcat connector port on line 70 of /usr/local/tomcat/conf/server.xml to port 8983:

<Connector port="8983" protocol="HTTP/1.1"

Restart tomcat

service tomcat restart

Solr

Download the solr tarball and unpack it to /usr/local/solr/

...

:

tar xvf solr-4.2.0.tgz
mv solr-4.2.0 /usr/local/solr
cd /usr/local/solr/dist/
cp solr-4.2.0.war /usr/local/tomcat/webapps/solr.war
mv solr-4.2.0.war /usr/local/solr/solr.war

Place into /usr/local/tomcat/conf/Catalina/localhost/solr.xml:

<Context docBase="/usr/local/solr/solr.war" debug="0" crossContext="true">

...

 <Environment name="solr/home" type="java.lang.String" value="/usr/local/solr" override="true"/>
</Context>

 

Place into /usr/local/solr/solr.xml:

...

<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">

...

    <cores defaultCoreName="avalon" adminPath="/admin/cores" zkClientTimeout="${zkClientTimeout:15000}" hostPort="8983" hostContext="solr">
    <core instanceDir="avalon/" name="avalon"/>

...

  </cores>
</solr>

 

mkdir /usr/local/solr/lib

...