1.1. 下载html
下载地址:http://lucene.apache.org/solr/java
环境要求:jdk1.7+以上,下载地址shell
http://www.oracle.com/technetwork/java/javase/downloads/index.htmlapache
1.2. 启动oracle
将命令窗口移动到角色的目录下,正面的命令若是不是在window上执行,则执行文件没有 .cmd后缀.spa
1.2.1. 普通启动code
$ bin\solr.cmd start
1.2.2. 指定端口启动orm
$ bin\solr.cmd start -p 8993 $bin\solr.cmd start -f
启动后的管理界面:http://localhost:8993/solr/admin/
htm
1.2.4. 更多get
$ bin\solr.cmd start -help
1.2.5. 中止指定端口
bin\solr.cmd stop -p 8993
1.2.6. 中止本机全部
$bin\solr.cmd stop -all
启动一个指定的实例:单一实例
$bin\solr.cmd -e techproducts
查看solr状态:
$bin\solr.cmd status
建立实例
$ bin/solr.cmd create -c <name>
输出的内容以下:
Creating new core 'dick' using command: http://localhost:8983/solr/admin/cores?action=CREATE&name=dick&instanceDir=dick { "responseHeader":{ "status":0, "QTime":1152}, "core":"dick"}