solr安装启动

本文由 作者 苏苏 于 2015-10-30 16:01 发布在  linux    

版本:
-rw-r--r--. 1 root root 150059757 5月 10 21:15 solr-4.10.4.tgz

解压:
[root@baozi local]# tar -zxvf solr-4.10.4.tgz

改名:
[root@baozi local]# mv solr-4.10.4 solr

目录:
[root@baozi solr]# ll
总用量 1004
drwxr-xr-x. 2 root root 4096 5月 10 21:23 bin
-rw-r--r--. 1 root root 410323 2月 28 05:24 CHANGES.txt
drwxr-xr-x. 13 root root 4096 2月 28 05:43 contrib
drwxr-xr-x. 4 root root 4096 5月 10 21:23 dist
drwxr-xr-x. 17 root root 4096 5月 10 21:23 docs
drwxr-xr-x. 15 root root 4096 5月 10 21:23 example
drwxr-xr-x. 2 root root 28672 5月 10 21:23 licenses
-rw-r--r--. 1 root root 12646 9月 8 2014 LICENSE.txt
-rw-r--r--. 1 root root 504355 2月 27 23:26 LUCENE_CHANGES.txt
-rw-r--r--. 1 root root 24655 9月 13 2014 NOTICE.txt
-rw-r--r--. 1 root root 5344 9月 8 2014 README.txt
-rw-r--r--. 1 root root 850 9月 8 2014 SYSTEM_REQUIREMENTS.txt
[root@baozi solr]#


在Linux环境上面启动:
//第一次启动显示的信息比较多:
[root@baozi solr]# bin/solr start
Waiting to see Solr listening on port 8983 [] Still not seeing Solr listening on 8983 after 30 seconds!
[|] INFO - 2015-05-10 13:32:24.989; org.apache.solr.core.SolrCore; no updateRequestProcessorChain defined as default, creating implicit default
INFO - 2015-05-10 13:32:25.054; org.apache.solr.core.RequestHandlers; created /update: org.apache.solr.handler.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.056; org.apache.solr.core.RequestHandlers; created /update/json: org.apache.solr.handler.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.059; org.apache.solr.core.RequestHandlers; created /update/csv: org.apache.solr.handler.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.060; org.apache.solr.core.RequestHandlers; created /update/json/docs: org.apache.solr.handler.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.071; org.apache.solr.core.RequestHandlers; created /select: solr.SearchHandler
INFO - 2015-05-10 13:32:25.072; org.apache.solr.core.RequestHandlers; created /query: solr.SearchHandler
INFO - 2015-05-10 13:32:25.076; org.apache.solr.core.RequestHandlers; created /get: solr.RealTimeGetHandler
INFO - 2015-05-10 13:32:25.078; org.apache.solr.core.RequestHandlers; created /export: solr.SearchHandler
INFO - 2015-05-10 13:32:25.085; org.apache.solr.core.RequestHandlers; created /browse: solr.SearchHandler
WARN - 2015-05-10 13:32:25.092; org.apache.solr.core.RequestHandlers; Multiple requestHandler registered to the same name: /update ignoring: org.apache.solr.handler.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.092; org.apache.solr.core.RequestHandlers; created /update: solr.UpdateRequestHandler
INFO - 2015-05-10 13:32:25.092; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.extraction.ExtractingRequestHandler
INFO - 2015-05-10 13:32:25.094; org.apache.solr.core.RequestHandlers; created /update/extract: solr.extraction.ExtractingRequestHandler
INFO - 2015-05-10 13:32:25.094; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.FieldAnalysisRequestHandler
INFO - 2015-05-10 13:32:25.094; org.apache.solr.core.RequestHandlers; created /analysis/field: solr.FieldAnalysisRequestHandler
INFO - 2015-05-10 13:32:25.094; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.DocumentAnalysisRequestHandler
INFO - 2015-05-10 13:32:25.095; org.apache.solr.core.RequestHandlers; created /analysis/document: solr.DocumentAnalysisRequestHandler
INFO - 2015-05-10 13:32:25.100; org.apache.solr.core.RequestHandlers; created /admin/: solr.admin.AdminHandlers
INFO - 2015-05-10 13:32:25.115; org.apache.solr.core.RequestHandlers; created /admin/ping: solr.PingRequestHandler
INFO - 2015-05-10 13:32:25.120; org.apache.solr.core.RequestHandlers; created /debug/dump: solr.DumpRequestHandler
INFO - 2015-05-10 13:32:25.238; org.apache.solr.core.RequestHandlers; created /replication: solr.ReplicationHandler
INFO - 2015-05-10 13:32:25.238; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.SearchHandler
INFO - 2015-05-10 13:32:25.239; org.apache.solr.core.RequestHandlers; created /spell: solr.SearchHandler
INFO - 2015-05-10 13:32:25.239; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.SearchHandler
INFO - 2015-05-10 13:32:25.239; org.apache.solr.core.RequestHandlers; created /tvrh: solr.SearchHandler
INFO - 2015-05-10 13:32:25.241; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.SearchHandler
INFO - 2015-05-10 13:32:25.242; org.apache.solr.core.RequestHandlers; created /terms: solr.SearchHandler
INFO - 2015-05-10 13:32:25.242; org.apache.solr.core.RequestHandlers; adding lazy requestHandler: solr.SearchHandler
INFO - 2015-05-10 13:32:25.242; org.apache.solr.core.RequestHandlers; created /elevate: solr.SearchHandler
[root@baozi solr]#

网页查看:
http://192.168.1.200:8983/solr

关闭solr:
[root@baozi solr]# bin/solr stop -all
Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 2360 to stop gracefully.
[root@baozi solr]#


//第二次启动:
[root@baozi solr]# bin/solr start
Waiting to see Solr listening on port 8983 [-]
Started Solr server on port 8983 (pid=2883). Happy searching!

[root@baozi solr]# bin/solr stop -all
Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 2883 to stop gracefully.
[root@baozi solr]#


//指定端口号启动:
[root@baozi solr]# bin/solr start -p 8983
Waiting to see Solr listening on port 8983 [/]
Started Solr server on port 8983 (pid=3291). Happy searching!

[root@baozi solr]#

//查看运行几个实例
[root@baozi solr]# bin/solr -i

Found 1 Solr nodes:

Solr process 3291 running on port 8983
{
"version":"4.10.4 1662817 - mike - 2015-02-27 16:43:07",
"startTime":"2015-05-10T13:47:07.286Z",
"uptime":"0 days, 0 hours, 0 minutes, 45 seconds",
"memory":"17.5 MB (%3.6) of 490.7 MB"}

[root@baozi solr]#

//显示在指定端口下运行实例的信息
[root@baozi solr]# bin/solr -p 8983 -V
Using Solr root directory: /usr/local/solr
Using Java: /usr/local/jdk/bin/java
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)

Port 8983 is already being used by another process (pid: 3291)

[root@baozi solr]#

//关闭指定端口的实例
[root@baozi solr]# bin/solr stop -p 8983
Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 3291 to stop gracefully.
[root@baozi solr]#

http://blog.csdn.net/baolibin528/article/details/45627653

标签: linux solr

  • blogger

发表评论:

网站管理网站首页手机访问RSS留言建议关于本站联系方式

爱上书 All Rights Reserved. Powered by emlog & Themes by ewcms