Setting Solr Environment Variables
- Open the configuration file.
1vi /etc/profile - Press i to enter the insert mode and add Solr to environment variables.
1 2
export SOLR_HOME=/usr/local/solrCloud export PATH=$SOLR_HOME/bin:$PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the environment variable take effect.
1source /etc/profile
Parent topic: Deploying Solr