Alfresco 5.2
- 5.2.0 (r135134-b14) Build 201702
- @ Ubuntu 14.04.2 on VirtualBox
Download
- Ubuntuは公式サイトよりダウンロード
- Alfresco Community(無償版)はDownload and Install Alfresco(公式サイト)からインストーラをダウンロード
-
メール登録必要→ "Maybe Later"を選択すれば不要
How to install
- インストーラ(alfresco-community-installer-201702-linux-x64.bin)を実行
- 詳細はこちら...Installing Alfresco Community Edition on Linux
- 最低構成として、CPUは2Core Memoryは4G以上推奨
英語版に日本語適用した場合は、うまくいかない? (Authentication系のエラーとなる)
console
$ chmod +x alfresco-community-installer-201702-linux-x64.bin
$ ./alfresco-community-installer-201702-linux-x64.bin
# =>インストール先は /opt/alfresco-community
動作確認
- URL=http://[Server IP or Hostname]:8080/share/
- USER ID=admin PSWD=インストーラで設定したもの
- デフォルトインストールのFirefoxで確認しようとしたら、Profileが壊れたので、Chromeにて確認できた。
How to Start
Manual
console
$ /opt/alfresco/
$ sudo ./alfresco.sh start
Auto-Settings
- インストールした時点でデーモンに登録されている様子
リファレンス
Access to Alfresco via Restful API
- RESTful API reference@Alfresco Documentation
- テスト方法:MacOSX → Alfresco@Ubuntuにアクセスする
ログイン
sample_login.rb
require 'json'
require 'rest-client' # gem install rest-client
TARGET_HOST = 'http://[Server IP or Hostname]:[Port]'
LOGIN_URL = TARGET_HOST + '/alfresco/service/api/login'
USER = 'admin' # ユーザー指定
PASSWORD = 'admin_pswd'
def login(user, password)
begin
response = RestClient.post LOGIN_URL, {'username' => user, 'password' => password}.to_json, :content_type => :json, :accept => :json
@alf_ticket = 'alf_ticket=' + JSON.parse(response)["data"]["ticket"]
puts @alf_ticket
rescue => e
puts e
end
end
login(USER, PASSWORD)
console
$ ruby sample.rb
alf_ticket=TICKET_95aec2355e94662cf687bf2475c84888fad32c32
バージョン情報確認
- http://[Server IP or Hostname]:8080/share/proxy/alfresco/api/serverにアクセスする
version_info
{
"data":
{
"edition": "Community",
"version": "5.2.0 (r135134-b14)",
"schema": "10005"
}
}