1
1

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 3 years have passed since last update.

OpenMBEE MMSとVEの環境構築(Alfrescoインストーラ使用)

Last updated at Posted at 2022-01-25

ベース

下記をベースに書きました。
https://github.com/Open-MBEE/mms-alfresco/blob/develop/mms-ent/docs/quick-start.md

本手順はAlfrescoのインストールにインストーラを使用しているため、すでにpostgresqlやtomcatなどの8080ポートを使用するサービスが動作している場合は手順通りに行ってもうまくいかない場合があります。

環境

OS:AlmaLinux

JAVA(OPENJDK)のインストール

dnf install java-1.8.0-openjdk-devel

ElasticSearchのインストール

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.16.rpm
rpm -ivh elasticsearch-5.6.16.rpm

kibanaをインストール(任意)

wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.16-x86_64.rpm
rpm -ivh kibana-5.6.16-x86_64.rpm

ElasticSearch自動起動設定

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service

ElasticSearch起動

sudo systemctl start elasticsearch.service

ElasticSearch起動確認 ※起動コマンド実行後、少し待ってから行う。

curl -XGET 'http://localhost:9200/_cluster/state?pretty'

TomcatへのAlfrescoのインストール

インストーラを使用してAlfrescoをインストール
https://hub.alfresco.com/t5/alfresco-content-services-hub/community-file-list-201605-ga/ba-p/289517

wget https://download.alfresco.com/release/community/201605-build-00010/alfresco-community-installer-201605-linux-x64.bin
chmod +x alfresco-community-installer-201605-linux-x64.bin
./alfresco-community-installer-201605-linux-x64.bin

インストーラのログ(いくつか入力項目あり)

[root@localhost ~]# ./alfresco-community-installer-201605-linux-x64.bin
Some or all of the libraries needed to support LibreOffice were not found on your system: fontconfig libSM libICE libXrender libXextlibcups libGLU
You are strongly advised to stop this installation and install the libraries.
For more information, see the LibreOffice documentation at http://docs.alfresco.com

Do you want to continue with the installation? [y/N]: y

Language Selection

Please select the installation language
[1] English - English
[2] French - Francais
[3] Spanish - Espanol
[4] Italian - Italiano
[5] German - Deutsch
[6] Japanese - 日本語
[7] Dutch - Nederlands
[8] Russian - Русский
[9] Simplified Chinese - ?体中文
[10] Norwegian - Norsk bokmal
[11] Brazilian Portuguese - Portugues Brasileiro
Please choose an option [1] : 6
----------------------------------------------------------------------------
ようこそ Alfresco Community セットアップウィザードへ。

----------------------------------------------------------------------------
インストールの種類

[1] 簡易 - デフォルトの設定を使ってインストールします。
[2] 詳細設定 - サーバーのポートとサービスのプロパティを設定できます。: 追加でインストールするコンポーネントを選択してください。
オプションを選択してください [1] : 1

----------------------------------------------------------------------------
インストール先フォルダ

Alfresco Community をインストールするフォルダを選択してください。

インストール先フォルダ: [/opt/alfresco-community]:

----------------------------------------------------------------------------
管理者のパスワード

Alfresco 管理者アカウントのパスワードを指定してください。

管理者のパスワード: :
パスワードの再入力: :
----------------------------------------------------------------------------
サービスとしてインストールする

Alfresco Community をサービスとして登録すると、マシンの起動時に自動的に Alfresco Community が開始されます。

Alfresco Community をサービスとしてインストールしますか? [Y/n]: y


----------------------------------------------------------------------------
警告

この環境は Alfresco を適切に実行するのに十分な構成ではありません。インストールする前に、以下の問題をチェック してください。

これらの問題があっても Alfresco は機能しますが、一部の製品機能が使用できないか、システムが適切に動作しない場 合があります。

Not enough CPUs (cores) available
 (2+): 1


続けるには [Enter] キーを押してください :

----------------------------------------------------------------------------
お使いのコンピュータに Alfresco Community をインストールする準備が整いました。

続けますか? [Y/n]: y

----------------------------------------------------------------------------
しばらくお待ちください。 Alfresco Community をお使いのコンピュータにインストール中です。

 インストール中
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
セットアップウィザードによる Alfresco Community のインストールが完了しました。

Readme ファイルを表示 [Y/n]: n

Alfresco Community を起動する [Y/n]: y

[root@localhost ~]# waiting for server to start.... done
server started
/opt/alfresco-community/postgresql/scripts/ctl.sh : postgresql  started at port 5432
Using CATALINA_BASE:   /opt/alfresco-community/tomcat
Using CATALINA_HOME:   /opt/alfresco-community/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-community/tomcat/temp
Using JRE_HOME:        /opt/alfresco-community/java
Using CLASSPATH:       /opt/alfresco-community/tomcat/bin/bootstrap.jar:/opt/alfresco-community/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/alfresco-community/tomcat/temp/catalina.pid
Tomcat started.
/opt/alfresco-community/tomcat/scripts/ctl.sh : tomcat started

[root@localhost ~]#

postgresqlへmmsユーザ作成

/opt/alfresco-community/postgresql/bin/psql -U postgres
[alfrescoインストール時の管理者パスワードを入力]

CREATE ROLE mms WITH LOGIN PASSWORD 'mms';
ALTER ROLE mms CREATEDB;
create database mms owner mms;
\q

Upload Schemas for ElasticSearch and Postgres

cd /root
wget https://raw.githubusercontent.com/Open-MBEE/mms-alfresco/develop/mms-ent/repo-amp/src/main/resources/mapping_template.json
wget https://raw.githubusercontent.com/Open-MBEE/mms-alfresco/develop/mms-ent/repo-amp/src/main/resources/mms_mappings.sh
wget https://raw.githubusercontent.com/Open-MBEE/mms-alfresco/develop/mms-ent/repo-amp/src/main/resources/mms.sql

環境の問題で上記のwgetがうまくいかなかったので下記で代用

cd /root
git clone https://github.com/Open-MBEE/mms-alfresco.git
cp ./mms-alfresco/mms-ent/repo-amp/src/main/resources/mapping_template.json ./
cp ./mms-alfresco/mms-ent/repo-amp/src/main/resources/mms_mappings.sh ./
cp ./mms-alfresco/mms-ent/repo-amp/src/main/resources/mms.sql ./
./mms_mappings.sh
/opt/alfresco-community/postgresql/bin/psql -h localhost -p 5432 -U mms -d mms -v schema=public < mms.sql
[パスワードは mms と入力]

ActiveMQのインストール

スキップ
インストールするとVEのリアルタイム更新が可能になる。

MMSのインストール

cd /root
wget https://github.com/Open-MBEE/mms-alfresco/releases/download/3.4.2/mms-amp-3.4.2.amp
wget https://github.com/Open-MBEE/mms-alfresco/releases/download/3.4.2/mms-share-amp-3.4.2.amp
cd /opt/alfresco-community/tomcat/webapps
java -jar ../../bin/alfresco-mmt.jar install /root/mms-amp-3.4.2.amp alfresco.war -force
java -jar ../../bin/alfresco-mmt.jar install /root/mms-share-amp-3.4.2.amp share.war -force

mms.propertiesの設定

cd /opt/alfresco-community/tomcat/shared/classes
wget https://raw.githubusercontent.com/Open-MBEE/mms-alfresco/develop/mms-ent/mms.properties.example
cp /root/mms-alfresco/mms-ent/mms.properties.example ./
mv mms.properties.example mms.properties
vi mms.properties

以下のように修正

app.pass=[インストール時に入力したパスワード]

pg.name=mms
pg.user=mms
pg.pass=mms

VEのインストール

cd /root
wget https://github.com/Open-MBEE/ve/releases/download/3.6.1/ve-3.6.1.zip
unzip ve-3.6.1.zip -d /opt/alfresco-community/tomcat/webapps/alfresco
mv /opt/alfresco-community/tomcat/webapps/alfresco/dist /opt/alfresco-community/tomcat/webapps/alfresco/ve

Tomcatを起動

systemctl start alfresco

動作確認

http://[サーバアドレス]:8080/alfresco/ve/mms.html

1
1
4

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?