{"id":129,"date":"2012-10-08T16:28:08","date_gmt":"2012-10-08T07:28:08","guid":{"rendered":"http:\/\/www.u2-life.net\/ss\/?p=129"},"modified":"2012-10-18T13:24:59","modified_gmt":"2012-10-18T04:24:59","slug":"amazon-ec2%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"http:\/\/www.u2-life.net\/ss\/blog\/2012\/10\/08\/amazon-ec2%e3%82%92%e4%bd%bf%e3%81%86\/","title":{"rendered":"Amazon EC2\u3092\u4f7f\u3046"},"content":{"rendered":"<p>\u540c\u3058\u304fAmazon EC2\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\u3002\u3053\u306e\u76ee\u7684\u3068\u3057\u3066\u306f\u3001\u3082\u3057\u77ed\u671f\u9593\u306b\u30a2\u30af\u30bb\u30b9\u304c\u96c6\u4e2d\u3059\u308b\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u793a\u305b\u306d\u3070\u306a\u3089\u306a\u3044\u3088\u3046\u306a\u3068\u304d\u306e\u6e96\u5099\u3092\u3057\u3066\u304a\u304f\u305f\u3081\u3067\u3042\u308b\u3002\u305d\u308c\u304b\u3089\u3001\u305f\u3068\u3048\u3070\u9031\u672b\u306e\u307f\u306b\u30aa\u30fc\u30d7\u30f3\u3055\u305b\u308b\u3088\u3046\u306a\u30c6\u30f3\u30dd\u30e9\u30ea\u306a\u30b5\u30fc\u30d0\u304c\u3042\u3063\u3066\u3082\u3088\u3044\u3060\u308d\u3046\u3001\u3068\u306e\u8003\u3048\u65b9\u306b\u3088\u308b\u3002<\/p>\n<p>\u57fa\u672c\u306f<a href=\"http:\/\/docs.amazonwebservices.com\/ja_jp\/AWSEC2\/latest\/GettingStartedGuide\/LaunchInstance.html\" title=\"AmazonEC2\">Amazon\u306e\u30b5\u30a4\u30c8<\/a>\u306e\u8a18\u8ff0\u306b\u3088\u308b\u3002<br \/>\n0.\u307e\u305a\u30a2\u30ab\u30a6\u30f3\u30c8\u3084Key Pair\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3002<br \/>\n1.Amazon EC2 \u30b3\u30f3\u30bd\u30fc\u30eb\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e Launch Instance\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3055\u305b\u308b\uff08\u3053\u308c\u307e\u30670\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff09\u3002<br \/>\n2.Create a New Instance \u30da\u30fc\u30b8\u304c\u3067\u308b\u306e\u3067\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u3076\u3002\u3053\u3053\u3067\u306fClassic wizard\u3092\u9078\u3093\u3060\u3002<br \/>\n3.\u4f7f\u7528\u3057\u305f\u3044OS\u3092\u9078\u3076\u3002<br \/>\n4.Security Group\u3092\u9078\u3093\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u3076\u3002quicklaunch-x\u306f\u4ee5\u524dquickstart\u3092\u9078\u3093\u3060\u6642\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3001default\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u3088\u3046\u3060\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u306f\u3001\u5916\u90e8\u304b\u3089\u3069\u306e\u30dd\u30fc\u30c8\u30fb\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8a31\u3059\u304b\u306e\u30bb\u30c3\u30c8\u3092\u9078\u629e\u3059\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f22\u306eSSH\u306e\u307f\u3060\u304c\u300180\u306eHTTP\u3082\u5165\u308c\u3066Web\u30b5\u30fc\u30d0\u306b\u306a\u308b\u3088\u3046\u306b\u3059\u308b\u3002\uff08\u3072\u3087\u3063\u3068\u3057\u3066\u3053\u308c\u306fLauch\u5f8c\u306b\u8a2d\u5b9a\u3057\u305f\u304b\u3082\u3057\u308c\u306a\u3044\uff09<br \/>\n5.\u8a2d\u5b9a\u78ba\u8a8d\u5f8c LAUNCH\u3059\u308b<br \/>\n6.Navigation \u30da\u30a4\u30f3\u306e Instances \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u7a3c\u50cd\u4e2d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u7dd1\u8272\u306e\u30de\u30fc\u30af\u306b\u306a\u3063\u3066\u3044\u305f\u3089\u3001\u7a3c\u50cd\u4e2d\u3002<br \/>\n+\u3053\u3053\u3067Security Group\u3092\u9078\u3093\u3067HTTP 80\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0<br \/>\n7.\u3053\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066Connect\u3092\u9078\u3076\u3068\u3001\u7d44\u307f\u8fbc\u307e\u308c\u305fJava\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304c\u958b\u304f<br \/>\n8.\u30ed\u30b0\u30a4\u30f3\u30cd\u30fc\u30e0\u306b\u6ce8\u610f\uff01Amazon Linux\u3060\u3068ec2-user.Ubuntu\u3060\u3068ubuntu.\u3000\u4ed6\u306eAMI\u306e\u4f8b\u3060\u3068root\u306e\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3089\u3057\u3044\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u516c\u958b\u9375\u3067\u81ea\u5206\u306ePC\u306b\u66f8\u304d\u8fbc\u307e\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\n\u3000\uff08\u81ea\u5206\u306e\u5834\u5408\u306fC:\\AWS\\ec2service \u3068\u6975\u529b\u7c21\u5358\u306b\u3057\u305f\uff09<br \/>\n9.\u3053\u308c\u3067LAUNCH SSH CLIENT\u3092\u62bc\u3059\u3068\u3001\u4eee\u60f3\u30b5\u30fc\u30d0\u306e\u753b\u9762\u304c\u51fa\u3066\u304f\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u3082\u3057\u3082apache\u3092\u7acb\u3061\u4e0a\u3052\u308b\u969b\u306e\u624b\u7d9a\u304d<br \/>\n10. sudo yum -y install httpd<br \/>\n11. \/etc\/rc.d\/init.d\/httpd start<br \/>\n12. \u30d6\u30e9\u30a6\u30b6\u3067apache\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u753b\u9762\u304c\u3067\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff08\u3053\u308c\u306f\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\uff09\u3002<br \/>\n13. \u30b3\u30f3\u30c6\u30f3\u30c4\u306f\/var\/www\/html\/ \u914d\u4e0b\u306b\u5165\u308b\u306e\u3067\u3001\u3053\u3053\u306bindex.html\u3092\u5165\u308c\u308b\u3000<br \/>\n   sudo \u3067vi\u304c\u5fc5\u8981\u304b\u3082\u3057\u308c\u306a\u3044<br \/>\n\u3000\u3000<!DOCTYPE html><br \/>\n\u3000\u3000\u3000\u3000<html><br \/>\n\u3000\u3000\u3000\u3000  <head><br \/>\n\u3000\u3000\u3000\u3000     <title>Hello world!<\/title><br \/>\n\u3000\u3000\u3000\u3000  <\/head><br \/>\n\u3000\u3000\u3000\u3000  <body><br \/>\n\u3000\u3000\u3000\u3000    <\/p>\n<h1>Hello World!!<\/h1>\n<p>\u3000\u3000\u3000\u3000  <\/body><br \/>\n\u3000\u3000\u3000\u3000<\/html><br \/>\n\u3000\u3000\u3050\u3089\u3044\u3067\u5341\u5206<br \/>\n14. \u518d\u5ea6\u30d6\u30e9\u30a6\u30b6\u3067\u30c1\u30a7\u30c3\u30af\u3002<br \/>\n15. ftp\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5165\u308c\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<p>\u7d42\u308f\u308b\u969b\u306b\u306f\u3001<br \/>\n16. \u30b3\u30f3\u30bd\u30fc\u30eb\u52d5\u4f5c\u4e2d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eState\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Instance Lifecycle\u3092Terminate\u306b\u3059\u308b\u3002<br \/>\n17. \u78ba\u8a8d\u304c\u6765\u308b\u306e\u3067Yes\u3092\u9078\u629e\u3059\u308b\u3002State \u304cShutting down\u3092\u7d4c\u3066terminate\u3068\u306a\u308b\u3002<br \/>\n18. EC2 Dashboard\u3092\u78ba\u8a8d\u3057\u3001\u81ea\u5206\u306e\u30b0\u30eb\u30fc\u30d7\u3067Runnning Instances\u304c0\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u7d42\u4e86\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u3058\u304fAmazon EC2\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\u3002\u3053\u306e\u76ee\u7684\u3068\u3057\u3066\u306f\u3001\u3082\u3057\u77ed\u671f\u9593\u306b\u30a2\u30af\u30bb\u30b9\u304c\u96c6\u4e2d\u3059\u308b\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u793a\u305b\u306d\u3070\u306a\u3089\u306a\u3044\u3088\u3046\u306a\u3068\u304d\u306e\u6e96\u5099\u3092\u3057\u3066\u304a\u304f\u305f\u3081\u3067\u3042\u308b\u3002\u305d\u308c\u304b\u3089\u3001\u305f\u3068\u3048\u3070\u9031\u672b\u306e\u307f\u306b\u30aa\u30fc\u30d7\u30f3\u3055\u305b\u308b\u3088\u3046\u306a <a class=\"more-link\" href=\"http:\/\/www.u2-life.net\/ss\/blog\/2012\/10\/08\/amazon-ec2%e3%82%92%e4%bd%bf%e3%81%86\/\">\u7d9a\u304d\u3092\u8aad\u3080 <i class=\"fa fa-chevron-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-quote","hentry","category-cloud","post_format-post-format-quote"],"_links":{"self":[{"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":6,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":137,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/posts\/129\/revisions\/137"}],"wp:attachment":[{"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.u2-life.net\/ss\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}