title: how to change solr home data directory
body: <p>I am using solr 5.2.1 on ubuntu server, I have created some cores in it and added data to it.</p>
  
  <p>After some time due to some error I restarted solr service using following command</p>
  
  <pre><code>service solr restart
  </code></pre>
  
  <p>After this command my data directory got suddenly changed from</p>
  
  <p>"/opt/solr/server/solr"
  to
  "/var/solr/data"</p>
  
  <p>on dashboard it is showing as Dsolr.solr.home=/var/solr/data</p>
  
  <p>Now how can I change this home data path, what is process or command to change this path</p>