Changing the port number for solr-4.3.1

I am using solr 3, and now I plan to switch to solr 4. The port that I want to run solr is 9090 instead of 8080. AFAIK, to change the port number, we configure the solr.xml file. The entry in my solr.xml file is as follows:

<cores adminPath="/admin/cores" defaultCoreName="collection1" host="${host:}" hostPort="9090" hostContext="${hostContext:solr}" zkClientTimeout="${zkClientTimeout:15000}"> <core name="collection1" instanceDir="collection1" /> 

Which is surprising when I hit the URL: http: // [domain]: 9090 / solr / admin .. it says that the page was not found, but http: // [domain]: 8983 / solr / "> .. works just as good even after changing the port number. I'm sure I'm missing something. Can someone please help me with this?

Thanks.

+8
solr solr4 solrcloud
source share
2 answers

The port value in the solr.xml file for Solr Cloud is not really determined where the listening port is defined for the server.

This port is defined (for Jetty's default configuration) in the jetty.xml file in the example / etc directory. Try changing it there or overriding from the command line:

java -Djetty.port = 9999 -jar start.jar

+15
source share

For Solr 5.4.1, you do not need to modify any configuration files. Just run the following command at a command prompt to run solr on port XXXX:

 solr-5.4.1\bin\solr start -p XXXX 

To stop this command:

 solr-5.4.1\bin\solr stop -p XXXX 
+3
source share

All Articles