Skip to content

An install script for Apache Solr 4.x.x in Tomcat 6 on Debian, Ubuntu, LinuxMint, Red Hat, Fedora, and CentOS

License

Notifications You must be signed in to change notification settings

scolson/install-apache-solr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solr 4.x.x multi-core install.sh

This script installs the current multi-core Apache Solr 4.x.x in Tomcat 6 on Debian, Ubuntu, LinuxMint, Red Hat, Fedora, and CentOS. It will optionally install the Solr 4.x configurations supplied with the Drupal Apache Solr or Search API Solr modules.

Install

There are multiple options. Choose one.

To install without cloning the repository using the default Solr conf:

curl https://raw.github.com/eosrei/install-apache-solr/master/install.sh | sudo bash -s

To install using the Drupal Apache Solr module conf:

git clone https://github.com/eosrei/install-apache-solr.git
cd install-apache-solr
sudo ./install.sh -a

To install using the Drupal Search API Solr module conf:

git clone https://github.com/eosrei/install-apache-solr.git
cd install-apache-solr
sudo ./install.sh -s

Clone the repository to test Ubuntu 12.04 LTS with Vagrant:

git clone https://github.com/eosrei/install-apache-solr.git
cd install-apache-solr/vagrant/ubuntu12.04
vagrant up

Notes

  • Are you sure you need Solr on your project? Think about it. Be sure.
  • Installs Tomcat 6 using the distribution's package manager.
  • The default Tomcat 6 port is 8080. It should be firewalled from external access.
  • Only one Solr core is created, additional cores will need to be created manually.
  • A random Apache Download Mirror is choosen and some are slow. It is OK to stop(^C) the script and start it again.
  • This should work to upgrade between 4.x.x releases, but will overwrite custom conf/schema. Test it.

Todo

  • Setup Tomcat6 Users
  • Docker support/tests
  • Install current Tomcat7 from the Apache Download mirrors

Tested Distributions

  • Debian 6 x64 (Vagrant test included)
  • Ubuntu 12.04 LTS x64 (Vagrant test included)
  • Ubuntu 13.10 x64 (Vagrant test included)
  • Linux Mint 15 x64 (Tested locally)
  • CentOS 6.5 x64 (Vagrant test included)
  • Fedora 18 x64 (Vagrant test included)

Tested with Solr 4.6.1 and 4.7.0

More information

About

An install script for Apache Solr 4.x.x in Tomcat 6 on Debian, Ubuntu, LinuxMint, Red Hat, Fedora, and CentOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published