{"id":5173,"date":"2011-01-23T12:12:18","date_gmt":"2011-01-23T12:12:18","guid":{"rendered":"http:\/\/fukata.org\/?p=5173"},"modified":"2017-08-11T23:04:02","modified_gmt":"2017-08-11T23:04:02","slug":"servers-man-vps-pro","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/5173\/","title":{"rendered":"EC2\u304b\u3089ServersMan@VPS\u306b\u51fa\u623b\u308a"},"content":{"rendered":"
\u73fe\u5728\u3001fukata.org\u306e\u30c9\u30e1\u30a4\u30f3\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306f\u3001DTI\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bServersMan@VPS Standard\u3068Amazon\u306eEC2 micro instance\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n
\u6708\u984d\u6599\u91d1\u304c\u5927\u4f533000\u5186\u7a0b\u5ea6\u304b\u304b\u3063\u3066\u304a\u308a\u3001EC2 micro instance\u3060\u3051\u306725\u30c9\u30eb\u7a0b\u5ea6\u6bce\u6708\u8acb\u6c42\u304c\u3042\u308a\u3001\u5b89\u5b9a\u6027\u306a\u3069\u3092\u629c\u304d\u306b\u3057\u3066\u30de\u30b7\u30f3\u30d1\u30ef\u30fc\u7684\u306b25\u30c9\u30eb\u3082\u4fa1\u5024\u3092\u898b\u51fa\u305b\u305a\u3001\u305a\u3063\u3068\u5272\u9ad8\u611f\u3092\u611f\u3058\u3066\u304a\u308a\u3001\u3069\u3046\u305b\u306a\u3089Ubuntu\u5bfe\u5fdc\u3082\u3057\u305fServersMan@VPS Pro\u306b\u307e\u3068\u3081\u305f\u65b9\u304c\u304a\u5f97\u306a\u3093\u3058\u3083\u306a\u3044\u304b\u601d\u3044\u3001\u4eca\u56de\u65b0\u305f\u306bPro\u3092\u7533\u3057\u8fbc\u307f\u307e\u3057\u305f\u3002<\/p>\n
\u524d\u56de\u306f\u7533\u3057\u8fbc\u3093\u3060\u5f8c\u306b10\u5206\u304f\u3089\u3044\u3067SSH\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f10\u5206\u4ee5\u4e0a\u7d4c\u3063\u3066\u3082\u7e4b\u304c\u3089\u305aSSH\u3067\u7e4b\u3052\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u306fTwitter\u3067@serversman_vps<\/a>\u5b9b\u306bDM\u3092\u9001\u3063\u305f\u7fcc\u65e5\u306b\u5bfe\u5fdc\u3055\u308c\u305f\u3089\u3057\u304f\u7e4b\u304c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n Ubuntu\u3060\u3068\u5b89\u5fc3\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001ServersMan\u306e\u65b9\u3067\u8a2d\u5b9a\u3092\u8272\u3005\u3044\u3058\u304f\u3089\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n <\/p>\n \u76ee\u6b21<\/p> CentOS\u306e\u9803\u306f\u3001\u958b\u901a\u6642\u306froot\u30e6\u30fc\u30b6\u306e\u307f\u306e\u63d0\u4f9b\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u901a\u5e38Ubuntu\u3060\u3068\u76f4\u63a5root\u30e6\u30fc\u30b6\u3067\u64cd\u4f5c\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001sudo\u3092\u4f7f\u3063\u3066\u4e00\u6642\u7684\u306broot\u6a29\u9650\u3092\u5f97\u3066\u5b9f\u884c\u3059\u308b\u3068\u3044\u3046\u306e\u304c\u6a19\u6e96\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001Ubuntu\u306e\u5834\u5408\u3082root\u30e6\u30fc\u30b6\u306e\u307f\u306e\u63d0\u4f9b\u3067\u3057\u305f\u3002\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bsudo\u3067\u4f5c\u696d\u3092\u884c\u3046\u30e6\u30fc\u30b6\u3068sudo\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n \u4f5c\u696d\u7528\u30e6\u30fc\u30b6\u306e\u8ffd\u52a0<\/p>\n sudo\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a<\/p>\n visudo\u306e\u7de8\u96c6\u5185\u5bb9<\/p>\n Ubuntu\u3092\u7533\u3057\u8fbc\u3080\u3068\u30b7\u30f3\u30d7\u30eb\u30bb\u30c3\u30c8\u3068\u3044\u3046\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u3082\u306e\u3057\u304b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u305d\u308c\u3067\u3082\u3001serversman\u3084apache\u306a\u3069\u5225\u306b\u5165\u308c\u3066\u3082\u3089\u308f\u306a\u304f\u3066\u3082\u826f\u3044\u3082\u306e\u307e\u3067\u5165\u3063\u3066\u3044\u307e\u3059\u3002OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001SSH\u306e\u307f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3082\u63d0\u4f9b\u3057\u3066\u3082\u3089\u3044\u305f\u3044\u3067\u3059\u3002<\/p>\n \u3067\u3001\u672c\u984c\u306eapache\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001Ubuntu\u3067\u306f\u3001\u74b0\u5883\u5909\u6570\u306b\u5b9f\u884c\u30e6\u30fc\u30b6\u306a\u3069\u3092\u8a2d\u5b9a\u3057\u3001apache2.conf\u306a\u3069\u3067\u306f\u3001\u305d\u306e\u5024\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001ServersMan\u306e\u65b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305fapache\u306b\u306f\u5b9f\u884c\u30e6\u30fc\u30b6\u7b49\u304c\u76f4\u66f8\u304d\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306ewww-data\u3067\u306f\u306a\u304f\u3001daemon\u30e6\u30fc\u30b6\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n \u666e\u6bb5\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u5229\u7528\u3057\u3066\u3044\u308bUbuntu\u3068\u8a2d\u5b9a\u304c\u7570\u306a\u308b\u3068\u5f8c\u3005\u9762\u5012\u306a\u4e8b\u306b\u306a\u308b\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u306b\u3042\u308bUbuntu\u30b5\u30fc\u30d0\u304b\u3089\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u624b\u5143\u306bUbuntu\u30b5\u30fc\u30d0\u304c\u7121\u3044\u4eba\u306f\u3001apt\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3054\u3068purge\u3057\u3066\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n \/proc\/cpuinfo\u3092\u898b\u3066\u307f\u308b\u3068\u3001Standard\u306e\u9803\u306f2\u3064\u3060\u3063\u305fCPU\u304c4\u3064\u306b\u5897\u3048\u3066\u3044\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30e1\u30e2\u30ea\u30821GB->2GB\uff08\u4fdd\u8a3c\u306f1GB\uff09\u306b\u5897\u3048\u3066\u3044\u308b\u306e\u3067\u3001\u30d6\u30ed\u30b0\u4ee5\u5916\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u7b49\u3092\u4e00\u7dd2\u306b\u52d5\u304b\u3057\u3066\u3082\u3001\u4eca\u306e\u3068\u3053\u308d\u306f\u5927\u4e08\u592b\u306a\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u7d50\u679c\u7b49\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u65e5\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n \u3084\u3063\u3071\u308a\u3001\u666e\u6bb5\u4f7f\u3044\u6163\u308c\u305fUbuntu\u3060\u3068\u6bd4\u8f03\u7684\u30b5\u30fc\u30d0\u8a2d\u5b9a\u304c\u697d\u3067\u3057\u305f\u3002apt\u6700\u9ad8\u3002<\/p>\n \u305f\u3060\u3001\u4e0a\u8a18\u306eapache\u306e\u4ef6\u3082\u3042\u308a\u3001\u4ed6\u306b\u3069\u306e\u7a0b\u5ea6\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3068\u7570\u306a\u308b\u90e8\u5206\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u8abf\u3079\u3066\u3044\u306a\u3044\u306e\u3067\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u74b0\u5883\u3092\u901a\u5e38\u306eUbuntu\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u306b\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u30b7\u30a7\u30eb\u306a\u3069\u304c\u3042\u308b\u3068\u52a9\u304b\u308b\u4eba\u304c\u591a\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u73fe\u5728\u3001fukata.org\u306e\u30c9\u30e1\u30a4\u30f3\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306f\u3001DTI\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bServersMan@VPS Standard\u3068Amazon\u306eEC2 micro instance\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[738],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5173"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=5173"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5173\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=5173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=5173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=5173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}root\u30e6\u30fc\u30b6<\/span><\/h2>\n
\r\n# adduser ubuntu\r\n ... Password\u7b49\u306e\u8a2d\u5b9a ...\r\n# addgroup admin\r\n# usermod -G ubuntu,admin ubuntu\r\n<\/pre>\n
\r\n# visudo\r\n<\/pre>\n
\r\n#includedir \/etc\/sudoers.d\r\n\r\n+ %admin ALL=(ALL) ALL\r\n<\/pre>\n
apache<\/span><\/h2>\n
cpu\u30ea\u30bd\u30fc\u30b9\u5272\u308a\u5f53\u3066<\/span><\/h2>\n
\u307e\u3068\u3081<\/span><\/h2>\n