欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【Solr 安装玩转】 博客分类: Apache Solr Solr 安装玩转 

程序员文章站 2024-03-21 21:21:28
...

一、Solr安装

1)下载

[root@hadoop0 bigdata]# wget http://mirrors.hust.edu.cn/apache/lucene/solr/5.5.2/solr-5.5.2.zip

--1999-06-15 20:06:19--  http://mirrors.hust.edu.cn/apache/lucene/solr/5.5.2/solr-5.5.2.zip

Resolving mirrors.hust.edu.cn... 202.114.18.160

Connecting to mirrors.hust.edu.cn|202.114.18.160|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 145103254 (138M) [application/zip]

Saving to: solr-5.5.2.zip

100%[=========================>] 145,103,254  255K/s   in 8m 12s  

 

1999-06-15 20:14:31 (288 KB/s) - solr-5.5.2.zip saved [145103254/145103254]

 

2)解压缩

[root@hadoop0 bigdata]# unzip solr-5.5.2.zip 

 

[root@hadoop0 bigdata]# cd solr-5.5.2

[root@hadoop0 solr-5.5.2]# ls

bin  CHANGES.txt  contrib  dist  docs  example  licenses  LICENSE.txt  LUCENE_CHANGES.txt  NOTICE.txt  README.txt  server

[root@hadoop0 solr-5.5.2]# cd server/

[root@hadoop0 server]# ls

contexts  etc  lib  modules  README.txt  resources  scripts  solr  solr-webapp  start.jar

[root@hadoop0 server]# cd solr-webapp/

[root@hadoop0 solr-webapp]# ls

webapp

[root@hadoop0 solr-webapp]# cd webapp/

[root@hadoop0 webapp]# ls

admin.html  css  favicon.ico  img  index.html  js  libs  partials  tpl  WEB-INF

[root@hadoop0 webapp]# cd ../../

[root@hadoop0 server]# cd ../

[root@hadoop0 solr-5.5.2]# ls

bin  CHANGES.txt  contrib  dist  docs  example  licenses  LICENSE.txt  LUCENE_CHANGES.txt  NOTICE.txt  README.txt  server

[root@hadoop0 solr-5.5.2]# cd bin/

[root@hadoop0 bin]# ls

init.d  install_solr_service.sh  oom_solr.sh  post  solr  solr.cmd  solr.in.cmd  solr.in.sh

[root@hadoop0 bin]# ./solr

 

Usage: solr COMMAND OPTIONS

       where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_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 to connect to Zookeeper, with 1g max heap size and remote Java debug options enabled):

 

    ./solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_socket,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

3)启动

[root@hadoop0 bin]# ./solr  start -p 8984

Waiting up to 30 seconds to see Solr running on port 8984 [/]  

Started Solr server on port 8984 (pid=1988). Happy searching!

 

[root@hadoop0 bin]# 

 

二、结果验证


【Solr 安装玩转】
            
    
    博客分类: Apache  Solr Solr 安装玩转 
 

  • 【Solr 安装玩转】
            
    
    博客分类: Apache  Solr Solr 安装玩转 
  • 大小: 44 KB
相关标签: Solr 安装玩转