Let's start with running and configuring our Solr. We will see several ways of running Solr, some configurations needed for Solr to be in production mode, and more. The following topics will be covered:
- Solr startup
- Production-level Solr setup and configurations
Earlier, we started Solr in interactive mode, where we picked up the cloud as the default config set. Let's revisit the Solr startup commands.
If you want to start Solr with a custom port, then you can use the following command:
bin\solr.cmd start -p 8984
Similar to start
, there's a command stop
. To stop Solr, simply use the following command:
bin\solr.cmd stop -all
The -all
parameter stops all Solr instances; if you want to stop a specific port, then pass that port number with an argument with parameter -p
. Let's say you start Solr with any key; then you can stop that particular instance by passing the key as a parameter...