Start:

  • Start the leader node

bin/solr -c -p 8983 -s example/products/node1/solr

where: –

8983 is the port where you want Solr leader node to run

example/products/node1/solr is the solr home for this node.

  • Start the other nodes providing the Zookeeper host and port

bin/solr -c -p 7574 -s example/products/node2/solr -z localhost:9983

where: –

7574 is the port where you want this Solr node to run

example/products/node2/solr is the solr home for this node.

localhost:9983 is the hostname:port for Zookeeper

Stop:

bin/solr stop -all

Reference

https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud

Advertisements