How to set solr/home in linux OS?

前端 未结 3 505
死守一世寂寞
死守一世寂寞 2021-01-21 04:23

I know how to configure solr.home by using Tomcat 6, but I don\'t know how to set solr.home by using Glassfish(V2.1). I have tried to set the sol

3条回答
  •  猫巷女王i
    2021-01-21 04:48

    Try setting a Java environment parameter from Java or edit your VM configuration:

    System.setProperty("solr.solr.home", "/home/user/apache-solr-1.4/example/solr");
    

    In my case I simply copied the 'solr' folder to glassfish/domains/domain1/config and it worked.

提交回复
热议问题