Solr安装,Jetty发布


solr环境使用自带Jetty,创建服务端. Jetty 是一个非常方便使用的 Web 服务器,它的特点在于非常小,很容易嵌入到我们的应用程序当中,而且针对 Web 2.0 的 Ajax 技术进行了特别的优化,这也使得我们的使用 Ajax 的应用程序可以拥有更好的性能。

1 下载最新solr 5.0
   http://lucene.apache.org/solr/downloads.html
   
2 解压

[email protected]:opt# ls -l solr-5.0.0/
total 1060
drwxr-xr-x  3 root root   4096 Feb 16 03:38 bin
-rw-r--r--  1 root root 440695 Feb 16 03:39 CHANGES.txt
drwxr-xr-x 13 root root   4096 Feb 16 04:27 contrib
drwxr-xr-x  4 root root   4096 Apr 14 17:50 dist
drwxr-xr-x 19 root root   4096 Apr 14 17:50 docs
drwxr-xr-x  6 root root   4096 Apr 14 17:50 example
drwxr-xr-x  2 root root  36864 Apr 14 17:50 licenses
-rw-r--r--  1 root root  12646 Feb 16 03:39 LICENSE.txt
-rw-r--r--  1 root root 523216 Feb 16 03:38 LUCENE_CHANGES.txt
-rw-r--r--  1 root root  24981 Feb 16 03:39 NOTICE.txt
-rw-r--r--  1 root root   7175 Feb 16 03:38 README.txt
drwxr-xr-x 11 root root   4096 Apr 14 17:55 server
-rw-r--r--  1 root root    850 Feb 16 03:38 SYSTEM_REQUIREMENTS.txt
[email protected]:opt# ls -l solr-5.0.0/server/
total 100
drwxr-xr-x 2 root root  4096 Apr 14 17:50 contexts
drwxr-xr-x 2 root root  4096 Apr 14 17:50 etc
drwxr-xr-x 3 root root  4096 Apr 14 17:50 lib
drwxr-xr-x 2 root root  4096 Apr 14 17:52 logs
-rw------- 1 root root  8560 Apr 14 17:56 nohup.out
-rw-r--r-- 1 root root  3823 Feb 16 03:38 README.txt
drwxr-xr-x 2 root root  4096 Apr 14 17:50 resources
drwxr-xr-x 4 root root  4096 Feb 16 03:38 scripts
drwxr-xr-x 3 root root  4096 Apr 14 17:50 solr
drwxr-xr-x 3 root root  4096 Apr 14 17:52 solr-webapp
-rw-r--r-- 1 root root 46294 Mar 12  2013 start.jar
drwxr-xr-x 2 root root  4096 Apr 14 17:50 webapps


3 启动服务监听

[email protected]:server# nohup java -jar ./start.jar &
[email protected]:etc# pwd
/opt/solr-5.0.0/server/etc
[email protected]:etc# cat jetty.xml  | grep jetty.port
...
            <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
            <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
...
[email protected]:etc# ss -lt | grep 8983
LISTEN     0      50                     :::8983                    :::*     


4 打开浏览器测试 http://172.16.211.34:8983:/solr

Solr安装,Jetty发布_第1张图片



你可能感兴趣的:(Solr安装,Jetty发布)