[[PageOutline]]
{{{
#!html
Eucalyptus 使用者手冊
}}}
----
= 【1.註冊】 =
* 到 https://IP:8443 註冊個人資料,註冊完後等待 mail 通知
* 註冊成功且登入後,下載使用者的 Certificate
{{{
$ mkdir ~/.euca
$ cd ~/.euca
$ unzip name-of-the-key-zip.zip
$ chmod 0700 ~/.euca
$ chmod 0600 ~/.euca/*
}}}
----
= 【2.安裝 EC2 command line tools】 =
{{{
$ wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools-1.3-30349.zip
$ unzip ec2-api-tools-1.3-30349.zip
$ export EC2_HOME=/path/to/installed/ec2-commandline-tools
$ export PATH=$PATH:$EC2_HOME/bin
$ source ~/.euca/eucarc
}}}
----
= 【3.快速開始】 =
* 使用者使用 EC2 tools 來控制 Euc
* 查詢 Euc 系統
{{{
$ ec2-describe-images
$ ec2-describe-instances
$ ec2-describe-availability-zones
$ ec2-describe-keypairs
}}}
* 申請 key pair,以便 ssh 登入 instance
{{{
$ ec2-add-keypair mykey >mykey.private
('mykey' is the name for the key in Eucalyptus, 'mykey.private' is the file to be used by ssh)
$ chmod 0600 mykey.private
$ ec2-run-instances -k mykey -n
}}}
*
{{{
### 允許 instance 開啟 22 port ###
$ ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0
### 給予 Instance IP ###
$ ec2-allocate-address
$ ec2-associate-address -i
### 使用 ssh 登入 ###
$ ssh -i mykey.private root@
### 關掉 Instances ###
$ ec2-terminate-instances ...
}}}
----
= Regerence =
* [http://docs.amazonwebservices.com/AWSEC2/2008-12-01/GettingStartedGuide/ Amazon EC2 Getting Started Guide]