LoginSignup
1
1

More than 3 years have passed since last update.

Ubuntu 18.04 に Fess 13.7 をインストールしてみる

Posted at

Ubuntu 18.04 に Fess 13.7 をインストールしてみる

目的

Docs » ドキュメント » Fess インストールガイド » インストール
を参考にUbuntu 18.04 に Fess をインストールしてみる

Javaのインストール


$ sudo apt install openjdk-11-jre-headless
$ sudo apt install openjfx

Elasticsearch をインストールする

codelibs/fessのnew releasesより
Fess 13.7とElasticsearch 7.7のセットでインストールする
Install Elasticsearch with Debian Packageを参考に

Import the Elasticsearch PGP Keyedit


$ sudo wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Installing from the APT repositoryedit


$ sudo apt install apt-transport-https
$ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

install the Elasticsearch Debian package

Elasticsearchのプラグイン毎に対応するバージョンが異なるので
org/codelibs
等で使用するプラグインが全てリリースされているプロダクトを使用する
Elasticsearch の plug-in の指定サイトの最新バージョンをチェックしてみる


$ sudo apt-cache madison elasticsearch で確認
elasticsearch |      7.7.1 | https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
elasticsearch |      7.7.0 | https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
~

elasticsearch をインストールする


$ sudo apt update
$ sudo apt install elasticsearch #  elasticsearch=7.7.1 がインストールされる

elasticsearch の設定ファイルに追記する

/etc/elasticsearch/elasticsearch.yml の最下行に以下の表記を追加する


configsync.config_path: /var/lib/elasticsearch/config

elasticsearch のプラグインをインストールする(ファイルに書き込んで sh で起動)


$ cat els
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-fess:7.7.0
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-extension:7.7.0
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-configsync:7.7.0
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-dataformat:7.7.0
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-minhash:7.7.0ZZ

sh ./els
-> Installing org.codelibs:elasticsearch-analysis-fess:7.7.0
-> Downloading org.codelibs:elasticsearch-analysis-fess:7.7.0 from maven central
[=================================================] 100%??
Warning: sha512 not found, falling back to sha1. This behavior is deprecated and will be
 removed in a future release. Please update the plugin to use a sha512 checksum.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y  <= 処理を継続する を4回繰り返す
~

$ ls /usr/share/elasticsearch/plugins
 analysis-extension 
 analysis-fess 
 configsync 
 dataformat 
 minhash

fess をインストールする

fess をインストールする

ダウンロード
より 安定版の最新版をDLする>fess-13.7.0.deb


$ sudo dpkg -i fess-13.7.0.deb

Fess の設定ファイルを修正する

/usr/share/fess/bin/fess.in.sh で以下をコメントアウト&修正


# ES_HTTP_URL=http://localhost:9200
# ES_TRANSPORT_URL=localhost:9300
FESS_DICTIONARY_PATH=/var/lib/elasticsearch/config/
FESS_JAVA_OPTS="$FESS_JAVA_OPTS -Dfess.port=8080"

設定ファイルの再読込


$ sudo /bin/systemctl daemon-reload
$ sudo /bin/systemctl enable elasticsearch.service
$ sudo /bin/systemctl enable fess.service

$ sudo systemctl restart elasticsearch.service
http://localhost:9200/ にアクセスして正常に表示されることを確認する

$ sudo systemctl restart fess.service
http://localhost:8080/ にアクセスして正常に表示されることを確認する

起動/停止系コマンド


$ sudo systemctl start elasticsearch.service
$ sudo systemctl stop elasticsearch.service
$ sudo systemctl restart elasticsearch.service
$ sudo systemctl status elasticsearch.service
$ sudo systemctl start fess.service
$ sudo systemctl stop fess.service
$ sudo systemctl restart fess.service
$ sudo systemctl status fess.service

自動起動の設定


$ sudo systemctl list-unit-files --type=service | grep fess.service
fess.service                               disabled
$ sudo systemctl list-unit-files --type=service | grep elasticsearch.service
elasticsearch.service                      disabled

$ sudo systemctl enable fess
$ sudo systemctl enable elasticsearch

再起動後、elasticsearch, fess が起動していることを確認

参考にしたのは以下のサイト

Docs » ドキュメント » Fess インストールガイド » インストール
Install Elasticsearch with Debian Package
systemctl コマンド
Ubuntu 16.04 x64 に fess-12.4.3.deb をインストールしてみる
Elasticsearch の plug-in の指定サイトの最新バージョンをチェックしてみる

1
1
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
1
1