Solr各版本命令行命令对比

Solr 4.x

  • 支持的命令:start, stop, restart, healthcheck
Usage: solr COMMAND OPTIONS
       where COMMAND is one of: start, stop, restart, healthcheck Standalone server example (start Solr running in the background on port 8984): solr start -p 8984 SolrCloud example (start Solr running in SolrCloud mode using localhost:2181 t o connect to ZooKeeper, with 1g max heap size and remote Java debug options enab led): solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_soc ket,server=y,suspend=n,address=1044" Pass -help after any COMMAND to see command-specific usage information, such as: solr start -help or solr stop -help

Solr 5.x

  • 支持的命令:start, stop, restart, healthcheck, create, creat
    e_core, create_collection, delete, version, upconfig, downconfig
Usage: solr COMMAND OPTIONS
       where COMMAND is one of: start, stop, restart, healthcheck, create, creat e_core, create_collection, delete, version, upconfig, downconfig Standalone server example (start Solr running in the background on port 8984): solr start -p 8984 SolrCloud example (start Solr running in SolrCloud mode using localhost:2181 t o connect to Zookeeper, with 1g max heap size and remote Java debug options enab led): solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_soc ket,server=y,suspend=n,address=1044" Pass -help after any COMMAND to see command-specific usage information, such as: solr start -help or solr stop -help

Solr 6.x

  • 支持的命令:start, stop, restart, healthcheck, create, creat
    e_core, create_collection, delete, version, zk
Usage: solr COMMAND OPTIONS
       where COMMAND is one of: start, stop, restart, healthcheck, create, creat e_core, create_collection, delete, version, zk Standalone server example (start Solr running in the background on port 8984): solr start -p 8984 SolrCloud example (start Solr running in SolrCloud mode using localhost:2181 t o connect to Zookeeper, with 1g max heap size and remote Java debug options enab led): solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_soc ket,server=y,suspend=n,address=1044" Pass -help after any COMMAND to see command-specific usage information, such as: solr start -help or solr stop -help

你可能感兴趣的:(Solr)