Last active
September 7, 2016 04:41
-
-
Save Revokee/5bdd5bba64eb38aae0d53a26fe6e4f6e to your computer and use it in GitHub Desktop.
Install new Solr Server (for Sunspot) on CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install wget | |
yum install wget | |
#Find the version that you need on lucene site and get it | |
wget http://ftp.unicamp.br/pub/apache/lucene/solr/6.2.0/solr-6.2.0.tgz | |
#Untar | |
tar xzf solr-6.2.0.tgz solr-6.2.0/bin/install_solr_service.sh --strip-components=2 | |
#execute the install (can be used for updates as well) | |
chmod +x install_solr_service.sh | |
./install_solr_service.sh solr-6.2.0.tgz -f | |
#Create solr user, add it to whell group (CentOS sudoers) and change the ownership of /opt/solr | |
bin/solr create -c <name> | |
#if you need to delete | |
bin/solr delete -c collection_name | |
For Solr > 4.7, copy schema.xml and solrconfig.xml from your_app/solr/conf to /opt/solr/solr/collection1 (or whatever your solr path is) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production: | |
solr: | |
hostname: any-host-you-want | |
port: 8983 | |
log_level: WARNING | |
path: /solr/core-name | |
user: XX | |
password: XX | |
# read_timeout: 2 | |
# open_timeout: 0.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment