Amazon EC2 LINUX編

  • Published on
    20-Jun-2015

  • View
    1.041

  • Download
    4

Embed Size (px)

DESCRIPTION

Amazon EC2 LINUX

Transcript

<ul><li> 1. </li></ul> <p> 2. http://beyondjapan.com JAWS-UG AWS Amazon EC2 3. agenda Amazon EC2 EC2 EC2 AmazonEC2 4step 4. Amazon EC2 Amazon EC2Amazon.com Amazon Web ServicesAWS Web Amazon EC2 Amazon.com IT BINARY http://www.sophia-it.com/content/Amazon+EC2 5. PC 6. OS OS CPU,,HDD OS OS OS OS OS OS OS FW/LB 7. Amazon EC2 0 8. EC2 1OK EC2 9. EC2 2013/05/13() 15:12:34.63 ID:??? *`) 10. FW/ WEB/APP 4 / () 2 KVS 1 11. 2013/05/28() 20:34:24.16 ID:??? *`) 12. FW/ WEB/APP 8 / 3 KVS 2 13. 2013/06/09() 18:56:02.87 ID:??? *`) 3 14. 10 FW/ WEB/APP 40 5/ KVS 15. 2013/06/21() 13:12:42.44 ID:??? *`) 16. WEB/APP 1 /KVS 1 17. 2 10 EC2 RDS,Dynamo,S3,Croudfront 18. EC2 19. / Availability Zone(AZ) Management console EBS Elastic IP IP Public DNS AMI 20. Step.1 Step.2 Step.3 Step.4 21. Step.1 22. 1 RHEL, centos ,fedora,ubuntu etc , amazon linux : Tokyo AZ 1 23. httpssh IPhttpallssh122.222.222.222 EBS OS810 20100 Elastic IP load balancer 24. Step.2 25. EC2 Amazon Web Services EC2 26. SSH Key Pairs Create Key Pair Key Pair 27. HTTP,SSH,SMTP Source:IP 0.0.0.0/0allIP 122.122.122.122/32 Security Groups Create Security Group Name: Description: Apply rule changes 28. Step. OS 29. Instances Lunch Instance Quick Launch Wizard 30. OS OS 31. Edit details AZ Termination protection 32. root EBS 33. Public DNS 34. Step. teraterm EBS IP 35. connect ec2-user Launch SSH client JAVA 36. teraterm connect with a standalone SSH Client teraterm OK 37. Root $ sudo su - #passwd Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully. # adduser jawsuser # cp -a /home/ec2-user/.ssh /home/jawsuser/ # chown -R jawsuser:jawsuser /home/jawsuser/.ssh/ # vi /etc/ssh/sshd_config Ec2-user # userdel -r ec2-user 38. EBS mkfs -t ext4 /dev/sdb mkdir /data mount /dev/sdb /data df Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 8256952 991908 7181188 13% / tmpfs 304240 0 304240 0% /dev/shm /dev/xvdb 20642428 176064 19417788 1% /data vi /etc/fstab /dev/sdb /data ext4 defaults,noatime 0 0 39. IP Elastic IPs allocate New Address Allocate IP Associate Associate 40. EBS OS SSHIP IP cname Elastic IP 41. OS WEB 42. </p>