aws bootcamp

Post on 25-May-2015

2.246 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

AWS BootCampSammy Lin

Agenda

• Create an AWS Account

• Launch Instances

• SSH To You Instance

• Install AMP(Apache ,Mysql ,PHP)

• Install WordPress

Create an AWS Account

申請帳號申請帳號 選擇服務選擇服務 填寫詳細資料填寫詳細資料

電話認證電話認證 信用卡認證信用卡認證完成完成

4

Create an AWS Account申請帳號網址: https://aws-portal.amazon.com/gp/aws/developer/registration/index.html

5

Create an AWS Account

6

Create an AWS Account

7

8

9

10

11

12

Launch Instances

• Launch Instances way

• Command Line

• API

• AWS Management Console

14

Pending

Runing

Stoped

Shutting down

Terminated

Launch

Stop

Start

Terminate

Terminate

reboot

15

16

17

18

19

20

21

22

23

24

SSH To You Instance

• Linux/Unix

• SSH

• ssh -i xxx.pem ec2-user@XXX.com

• Windows

• PuTTy

• PuTTyGen

下載網址: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

28

Text

Connection > SSH > Auth > Choose Private

Get Public DNS

Login: ec2-user

Install LAMP• sudo -i

• yum update

• yum install php httpd mysql-server php-mysql

• service httpd start

• service mysqld start

• mysqladmin -u root password 'password'

• mysql -u root -p

• mysql> create database wordpress;

• mysql> exit

Install WordPress

• wget http://tw.wordpress.org/wordpress-3.2.1-zh_TW.tar.gz

• tar -xzvf wordpress-3.2.1-zh_TW.tar.gz

• mv wordpress/* /var/www/html

• rm -rf wordpress

• rm -f wordpress-3.2.1-zh_TW.tar.gz

• chown apache:apache /var/www/html/ -R

41

Reference

• AWS 雲端企業實戰聖經: Amazon Web Services 改造企業 IT 體質 (Hank Lin)

• Amazon Web Services Blog http://aws.typepad.com/

• 優福網資訊: http://www.tts.bz/

• AWS 華人 WiKi : http://wiki.awsusergroup.com.tw

Thank Listen

• corn2277@gmail.com

• http://blog.IGotCloud.com

• Twitter:SammyLinTw

• http://about.me/sammylin

top related