Solr常用命令
来源:互联网 发布:2017淘宝游戏专营 编辑:程序博客网 时间:2024/04/30 02:50
1,./solr start -noprompt 单机启动solr
2,集群方式启动:./solr -c -p 8983 -z Master.Hadoop:2181 -s /home/solr-5.3.0/server/solr_navinfo -noprompt
5,停止所有solr服务:./solr stop -all
3,对某个目录文件添加索引:/post -c gettingstarted docs/
-c 把索引放到指定的collection
6,停止指定端口的solr服务:./solr stop -p 端口号
7,查看启动命令说明:./solr start --help
8,./solr start -e cloud -noprompt 以集群测试模式启动
9,开始各个参数说明:
10,./solr status 查看集群状态-f Start Solr in foreground; default starts Solr in the backgroundand sends stdout / stderr to solr-PORT-console.log-c or -cloud Start Solr in SolrCloud mode; if -z not supplied, an embedded ZooKeeperinstance is started on Solr port+1000, such as 9983 if Solr is bound to 8983-h <host> Specify the hostname for this Solr instance-p <port> Specify the port to start the Solr HTTP listener on; default is 8983The specified port (SOLR_PORT) will also be used to determine the stop portSTOP_PORT=($SOLR_PORT-1000) and JMX RMI listen port RMI_PORT=(1$SOLR_PORT).For instance, if you set -p 8985, then the STOP_PORT=7985 and RMI_PORT=18985-d <dir> Specify the Solr server directory; defaults to server-z <zkHost> ZooKeeper connection string; only used when running in SolrCloud mode using -cTo launch an embedded ZooKeeper instance, don't pass this parameter.-m <memory> Sets the min (-Xms) and max (-Xmx) heap size for the JVM, such as: -m 4gresults in: -Xms4g -Xmx4g; by default, this script sets the heap size to 512m-s <dir> Sets the solr.solr.home system property; Solr will create core directories underthis directory. This allows you to run multiple Solr instances on the same hostwhile reusing the same server directory set using the -d parameter. If set, thespecified directory should contain a solr.xml file, unless solr.xml exists in ZooKeeper.This parameter is ignored when running examples (-e), as the solr.solr.home dependson which example is run. The default value is server/solr.-e <example> Name of the example to run; available examples:cloud: SolrCloud exampletechproducts: Comprehensive example illusating many of Solr's core capabilitiesdih: Data Import Handlerschemaless: Schema-less example-a Additional parameters to pass to the JVM when starting Solr, such as to setupJava debug options. For example, to enable a Java debugger to attach to the Solr JVMyou could pass: -a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983"In most cases, you should wrap the additional parameters in double quotes.-noprompt Don't prompt for input; accept all defaults when running examples that accept user input-V Verbose messages from this script
11,./solr create -c 新建 collection
12,./solr delete -c 删除 collection
13,./solr healthcheck -c gettingstarted查询collection的文档数目
14, solr create [-c name] [-d confdir] [-n configName] [-shards #] [-replicationFactor #] [-p port]
15,./solr create -c poi -d poi_configs -shards 2 -replicationFactor 2
0 0
- Solr常用命令
- Solr 常用命令
- solr常用命令总结
- solr常用命令总结
- Solr
- solr
- solr
- solr
- solr
- solr
- Solr
- solr
- solr
- solr
- solr
- Solr
- solr
- Solr
- Sed 地址和模式匹配的问题
- Android语言切换RadioButton文本不切换问题
- 使用ViewPager+Fragment来实现带滚动条的多屏滑动-IndicatorFragmentActivity
- zepto.js入门到精通(一)
- DOM之重新介绍CSS的定位
- Solr常用命令
- Android常见问题总结(三)
- Android ViewDragHelper完全解析 自定义ViewGroup神器
- 推荐一款基于Java的音视频处理开源项目--JAVE
- 解决StoryBoard上cell上定义的view的背景点击后不显示的问题(其中用uiview 当作线的时候最多遇到,会不显示线 而出现不流畅问题)
- MySQL导入.sql文件及常用命令
- SOLR缓存调优
- Having的用法
- 屏幕上截图