1. download solr-5.2.1.tgz
2. install
#tar xzf solr-5.2.1.tgz solr-5.2.1/bin/install_solr_service.sh --strip-components=2
#./install_solr_service.sh solr-5.2.1.tgz
3. check solr status
#service solr status
Preferences
https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production