Alfresco Identity Servicesのインストール
はじめに
このページでは、CentOS 7 に Alfresco Identity Services をインストールする手順について説明します。
インストール対象の Alfresco Content Services あるいは Alfresco Process Services でサポートされているバージョンのものを選択してください。
本手順に記載のバージョンは、適宜読み替えてください。
1.事前準備
事前準備として、次のものがインストールされていることを前提とします。
OpenJDK
Nginx
インストールされていない場合は次の手順も参考にインストールをしてください。
OpenJDK のインストール(yum リポジトリから)
Nginx のインストール
Alfresco Identity Services アクセス制限について
デフォルトの状態の場合、Alfresco Identity Services は localhost からのアクセスのみを許可する状態となっております。これは Alfresco Identity Services のベースとなっている Keycloak が内包している Wildfly アプリケーションサーバの設定です。
本手順では Alfresco Identity Services と同じサーバに Nginx をインストール済みの前提で記載しておりますが、実際の構成はお客様の環境にあわせて適宜修正いただく必要がございます。
2.Alfresco Identity Services をインストール
実行用ユーザ を作成します
実行コマンド
# useradd alfrescoAlfresco Identity Services の Zip ファイルをあらかじめダウンロードしてサーバに配置します
ファイルを解凍します
実行コマンド
# unzip alfresco-identity-service-1.1.0.zip -d /opt/設定ファイルを編集し、realm ファイルのパスを絶対パスで指定します
実行コマンド
# vi /opt/alfresco-identity-service-1.1.0/bin/standalone.conf編集内容
## -*- shell-script -*- ######################################################
## ##
## WildFly bootstrap Script Configuration ##
## ##
##############################################################################
#
# This file is optional; it may be removed if not needed.
#
ALF_HOME="/opt/alfresco-identity-service-1.1.0" ←追加
(中略)
# Uncomment this out to control garbage collection logging
# GC_LOG="true"
# Alfresco realm import
JAVA_OPTS="$JAVA_OPTS -Dkeycloak.import=$ALF_HOME/realm/alfresco-realm.json" ←編集所有者を実行ユーザに変更します
実行コマンド
# chown -R alfresco:alfresco /opt/alfresco-identity-service-1.1.0サービスファイルを作成します
実行コマンド
# vi /etc/systemd/system/identity-services.service編集内容
[Unit]
Description=Alfresco Identity Services service
After=network.target
[Service]
User=alfresco
Group=alfresco
ExecStart=/opt/alfresco-identity-service-1.1.0/bin/standalone.sh
ExecStop=ExecStop=/bin/kill -INT $MAINPID
[Install]
WantedBy=multi-user.targetAlfresco Identity Services を起動します
実行コマンド
# systemctl daemon-reload \
&& systemctl start identity-services次の情報でアクセスします
| 項目名 | 値 |
|---|---|---|
1 | URL | <ベースURL>/auth/admin/alfresco/console/ |
2 | ID | admin |
3 | PW | admin |