14
12

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

AWS上高可用性redmineサーバ構築

Last updated at Posted at 2015-02-21

##AWS上冗長化構成(高可用性)redmineサーバ構築##

###環境###

  • AWS利用
  • マルチAZでサーバ2台(AmazonLinux 64bit)
  • RDS:mysql
  • S3バケット(デレクトリ):mybucket/redmine

###構築手順概要###

1). IAMRole作成
mybucket/redmineへのフルアクセス権限付与

2). EC2、ELB、RDS、S3バケット(デレクトリ)作成
1)で作成したIAMRoleを指定

3). redmineインストール(Apache、ruby、Passengerを含む)
参考手順:http://blog.redmine.jp/articles/2_6/installation_centos/

インストール先:/opt/redmine
DB接続 host: xxxxxxxx.ap-northeast-1.rds.amazonaws.com

4). S3fs導入
https://code.google.com/p/s3fs/wiki/InstallationNotes
マウントポイント:/mnt/redmine
/etc/rc.localに自動起動設定

    IAMROLE=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/`
    /usr/bin/s3fs mybucket:/redmine /mnt/redmine -o use_cache=/tmp,iam_role=${IAMROLE},rw,allow_other,uid=48,gid=48

シンボリックリンク作成:
/opt/redmine/files -> /mnt/redmine/files

5). セッション管理をDBに変更(ActiveRecord)
https://github.com/pencil/redmine_activerecord_session_store

6). DNS登録(ELB)

14
12
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
14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?