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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值