Amazon Machine Image (AMI) を利用する
Amazon Web Services (AWS) の環境にて、すぐ Aipo をご利用頂けるようになる Amazon Machine Image (AMI) を提供しております。
準備
Amazon Management Console にログイン
Amazon Management Console にログインします。
https://console.aws.amazon.com/s3/home
ログイン後、EC2タブをクリックしてください。
Navigationメニューの Region を Asia Pacific (Tokyo) にしてください。
KeyPairの作成
Key Pairs > Create Key Pair
| Key Pair Name | aipo |
|---|
ダウンロードされる aipo.pem は二度と発行できないため、無くさないようにしてください。
Security Groups の作成
Security Groups > Create Security Group
| Name | aipo |
|---|---|
| Description | aipo |
| VPC | no VPC |
FireWallの設定をおこないます。
SSH
| Create a new rule | Custom TCP rule |
|---|---|
| Port range | 22 |
| Source | 自分の使用しているIPアドレス/ネットマスクをご入力ください |
HTTP
| Create a new rule | Custom TCP rule |
|---|---|
| Port range | 80 |
| Source | 0.0.0.0/0 |
インスタンス作成
Instances > Launch Instance
CHOOSE AN AMI
Community AMIs を選択する
「linux-aipo6010」を選択する。
INSTANCE DETAILS
1ページ目
| Number of Instances | 1 |
|---|---|
| Availability Zone | No preference |
Launch Instances を選択する。
Continue
2ページ目
| Kernel ID | Use Default |
|---|---|
| RAM Disk ID | Use Default |
| Monitoring | none (任意) |
| UserData | none |
| Termination Protection | none (任意) |
| Shutdown Behavior | Stop |
Continue
3ページ目
Continue
CREATE KEY PAIR
| Choose from your existing Key Pairs | aipo |
|---|
Continue
CONFIGURE FIREWALL
| Choose one or more of your existing Security Groups | default, aipo (複数選択してください) |
|---|
インスタンスにSSHでアクセスする
Instances > AMIから作成されたAipoのインスタンスを選択 > メニューの 「Instance Actions」 > 「Connect」
public DNS が表示される
例:ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com
Linux などのシェルから
# ssh -i aipo.pem ec2-user@ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com
インスタンスにログインする。
InstanceType:Largeモデルを選んだ場合
設定ファイルの書き換えをおこなう。
# vim /usr/local/aipo/tomcat/webapps/aipo/WEB-INF/datasource/dbcp-org001.properties # vim /usr/local/aipo/tomcat/webapps/ROOT/WEB-INF/datasource/dbcp-org001.properties ------------------------------------------------ cayenne.dbcp.maxActive=200 cayenne.dbcp.minIdle=10 cayenne.dbcp.maxIdle=50 ------------------------------------------------
# vim /usr/local/aipo/tomcat/bin/catalina.sh ------------------------------------------------------------------------------------------------ CATALINA_OPTS="-server -Xmx2048M -Xms512M -Xss256k -Djava.awt.headless=true" ------------------------------------------------------------------------------------------------
# vim /usr/local/aipo/postgres/data/postgresql.conf [Large] ------------------------------------------------------------------------------------------------ max_connections = 200 ------------------------------------------------------------------------------------------------
Aipoを起動する
# sudo su - # sh /usr/local/aipo/bin/startup.sh
Aipoにアクセスする
ブラウザにて
http://ec2-user@ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com/aipo/portal/
にアクセスする。







