Alfresco community Edition 5.0.dをCentOS7へインストールする

メモ:  Category:centos

Alfrescoは、重要な文書を管理し、共同作業を行えるオープンプラットフォームです。 商用版のAlfresco Oneとオープンソース版のAlfresco Community Editionがあります。

ここでは、Alfresco Community Editionのインストール手順をまとめます。

ライブラリのインストールとインストールファイルのダウンロード(準備編)

Alfrescoに必要なライブラリをインストールします。

# yum install libXrender libSM libICE libXext fontconfig cups-libs

AlfrescoのサイトからLinux版のインストーラーをダウンロードします。

2015/04/06時点の最新は、5.0.dです。

# cd /usr/local/src
# curl -O http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d-installer-linux-x64.bin

ダウンロードしたalfresco-community-5.0.d-installer-linux-x64.binに実行権限を付与します。

# chmod 755 alfresco-community-5.0.d-installer-linux-x64.bin

alfrescoは、Tomcatを使うようなのでポートの設定もしておきます。

# firewall-cmd --add-port=8080/tcp --zone=public --permanent
# firewall-cmd --reload

ここまででインストールの準備は完了です。

Alfrescoのインストール

ダウンロードしたインストーラを実行し、Alfresco Community Editionをインストールしていきます。

# ./alfresco-community-5.0.d-installer-linux-x64.bin

インストール時の言語選択が表示されます。私の環境では、日本語がうまく表示されなかった為、[1]Englishを選択してインストールを続けます。

Language Selection
 
Please select the installation language
[1] English - English
[2] French - Français
[3] Spanish - Español
[4] Italian - Italiano
[5] German - Deutsch
[6] Japanese - 日本語
[7] Dutch - Nederlands
[8] Russian - Русский
[9] Simplified Chinese - 简体中文
[10] Norwegian - Norsk bokmål
[11] Brazilian Portuguese - Português Brasileiro
Please choose an option [1] : 1

ハードウェアのスペックによっては、次のように表示される場合があります。

Error: There has been an error.
0.96 GB of RAM is not enough to run Alfresco for test or production purposes.
Alfresco may not function correctly and if it does, it will not perform well.
Upgrade the server to have at least 2.0 GB of RAM (preferably at least 4.0 GB).
Press [Enter] to continue:

インストール方法の選択画面が表示されるので、[1] Easyを選択します。

----------------------------------------------------------------------------
Welcome to the Alfresco Community Setup Wizard.

----------------------------------------------------------------------------
Installation Type

[1] Easy - Installs servers with the default configuration
[2] Advanced - Configures server ports and service properties.: Also choose optional components to install.
Please choose an option [1]: 1

インストール先のディレクトリを指定します。ここでは、デフォルトの/opt/alfresco-5.0.dを使用します。

----------------------------------------------------------------------------
Installation Folder

Please choose a folder to install Alfresco Community

Select a folder [/opt/alfresco-5.0.d]:

管理者のパスワードを設定します。

----------------------------------------------------------------------------
Admin Password

Please give a password to use for the Alfresco administrator account.

Admin Password: :********
Repeat Password: :********

Alfrescoをサービスとして登録するか聞かれますので、「y」を入力しサービスとして実行されるように設定します。

----------------------------------------------------------------------------
Install as a service

You can optionally register Alfresco Community as a service. This way it will
automatically be started every time the machine is started.

Install Alfresco Community as a service? [Y/n]: y

CPUのコア数やらメモリの量やら警告が出ますが、そのままEnterを押してインストールを続行します。

----------------------------------------------------------------------------
Warning!
 
This environment is not configured optimally for Alfresco - please carefully
review this list before continuing.
 
While these issues will not prevent Alfresco from functioning, some product
features may be unavailable, or the system may not perform optimally.

Insufficient CPUs (cores) (2+): 1
Insufficient system RAM (4.0GB+): 3.7GBSMTP TCP port in use: 25

Prease [Enter] to continue:

「Alfrescoをインストールする準備ができました。」と表示されるので「y」を選択し、インストールを開始します。

----------------------------------------------------------------------------
Setup is now ready to begin installing Alfresco Community on your computer.

Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs Alfresco Community on your computer.

 Installing
 0% 

インストールが完了すると、Readmeファイルを表示するか?と聞かれるので。「n」を選択しておきます。

----------------------------------------------------------------------------
Setup has finished installing Alfresco Community on your computer.

View Readme File [Y/n]: n

Alfrescoを起動するか聞かれるので「y」を選択します。

Launch Alfresco Community Share [Y/n]: y

以上でAlfresco Community Editionのインストールは完了です。

bluenote by BBB