23
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Fessでかんたん全文検索サーバー

Last updated at Posted at 2014-02-04

概要

  • Javaインストール
  • Fessインストール
  • 起動、設定

環境

  • debian squeeze 32bit

手順

Javaインストール

  • jdk 7 for Linux x8のダウンロード
jdk-7-Linux-x86
$ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz"
  • 適当なディレクトリに解凍
解凍
$ sudo mv jdk-7u51-linux-i586.tar.gz /usr/local/src/
$ sudo tar xzvf jdk-7u51-linux-i586.tar.gz
  • pathを通す
bash_profileとか
$ vim ~/.bash_profile

# bash_profileとかに下記みたいな感じで追加
export PATH="/usr/local/src/jdk1.7.0_51/bin/:$PATH"

$ source ~/.bash_profile
  • 確認
version確認
$ java -version

Fessインストール

  • Fessのダウンロード
Download
$ wget 'http://sourceforge.jp/frs/redir.php?m=iij&f=%2Ffess%2F59462%2Ffess-server-8.2.0.zip' -O fess-server-8.2.0.zip
  • Fessのインストール
Install
$ unzip fess-server-8.2.0.zip
$ mv fess-server-8.2.0 /foo/bar/hoge/fess
$ cd /foo/bar/hoge/fess
$ chmod +x bin/*.sh

Fessの起動

  • Fess serverの起動
startup
$ cd /foo/bar/hoge/fess
$ ./bin/startup.sh

もしくは
$ vim ~/.bash_profile
# bash_profile
export PATH="/foo/bar/hoge/fess/bin/:$PATH"

$ source ~/.bash_profile
$ startup
  • Fess serverの停止
shutdown
$ cd /foo/bar/hoge/fess
$ ./bin/shutdowm.sh
  • 起動port変更
port
$ vim ./fess/conf/server.xml
# server.xml
# ここのportの値を変更後、再起動
   <Connector port="8080" protocol="HTTP/1.1"
  • 管理者・solrパスワード変更
password
// admin
$ vim ./fess/conf/tomcat-user.xml
# tomcat-user.xml
# ここのpasswordを変更後、再起動
  <user username="admin" password="admin" roles="fess"/>
# http://localhost:8080/fess/admin/

// solr
$ vim ./fess/conf/tomcat-user.xml
# tomcat-user.xml
# ここのpasswordを変更
  <user username="solradmin" password="solradmin" roles="solr"/>

#そして、以下に上記で設定したusernameとpasswordを追加後、再起動
$ vim ./fess/webapps/fess/WEB-INF/classes/solrlib.dicon
<component class="org.apache.commons.httpclient.UsernamePasswordCredentials">
    <arg>"solradmin"</arg> <!-- Username -->
    <arg>"solradmin"</arg> <!-- Password -->
</component>

参考

23
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?