1. There are two ways to add SOLR/home Configuration:
One is to modify the Web. xml of the solr. War package, path: solr-4.7.2.rar \ WEB-INF \ WEB. XML, add the following content:
This method is effective for both Tomcat and wildfly containers.
Another method: for Tomcat server software:
Add the SOLR. xml file to the directory e: \ apache-Tomcat-7.0.23 \ conf \ Catalina \ localhost. The content is as follows:
<Context docbase = "/SOLR" DEBUG = "0" crosscontext = "true">
<Environment name = "SOLR/home" type = "Java. Lang. String" value = "E: \ solr-4.7.2 \ home \ SOLR" override = "true"/>
</Context>
For wildfly server software:
For standalone mode,
Http: // localhost: 9990/console/app.html # Properties
Add the configuration above.
2. for standalone mode, place the SOLR. War package in the following path: D: \ Software \ wildfly-8.1.0.Final \ standalone \ deployments
3. Start standalone. bat, the file path is as follows: D: \ Software \ wildfly-8.1.0.Final \ bin. The SOLR. War file is successfully loaded.
4. The SOLR access link is http: // localhost: 8080/SOLR, and the port is 8080, instead of the wildfly Management page http: // localhost: 9990/console/app.html # Home
In Port 9990
The homepage of wildfly is http: // localhost: 8080/
As shown in the red box above, the wildfly Management page is http: // localhost: 9990/console/app.html # Home Page.
Wildfly deployment SOLR. War