Jay
Jay

Reputation: 841

how to change solr home data directory

I am using solr 5.2.1 on ubuntu server, I have created some cores in it and added data to it.

After some time due to some error I restarted solr service using following command

service solr restart

After this command my data directory got suddenly changed from

"/opt/solr/server/solr" to "/var/solr/data"

on dashboard it is showing as Dsolr.solr.home=/var/solr/data

Now how can I change this home data path, what is process or command to change this path

Upvotes: 1

Views: 3359

Answers (1)

Jay
Jay

Reputation: 841

command to change home path

solr start -s /opt/solr/server/solr

or if you are not in bin page than also specify its full path.

bin/solr start -s /opt/solr/server/solr

Upvotes: 3

Related Questions