{"id":5100,"date":"2020-09-17T15:50:12","date_gmt":"2020-09-17T06:50:12","guid":{"rendered":"https:\/\/kumapress.com\/?p=5100"},"modified":"2020-09-17T15:50:28","modified_gmt":"2020-09-17T06:50:28","slug":"lightsail%ef%bc%9a%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%89db%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/kumapress.com\/?p=5100","title":{"rendered":"Amazon Lightsail\uff1a\u30de\u30cd\u30fc\u30b8\u30c9DB\u3092\u5c0e\u5165\u3059\u308b"},"content":{"rendered":"\n<p><span style=\"font-size: 14pt;\">Lightsail\u74b0\u5883\u3067\u30de\u30cd\u30fc\u30b8\u30c9DB\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3063\u3068\u3044\u3063\u3066\u3082\u3001\u3053\u308c\u3060\u3051\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u3082\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u8fbc\u307f\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u8cbb\u7528\u611f\u3067\u3059\u304c\u3001\u3053\u3093\u306a\u611f\u3058\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5101 aligncenter\" src=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/9ae7fa6d5635fa5685e7fac090281c97.png\" alt=\"\" width=\"860\" height=\"699\" srcset=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/9ae7fa6d5635fa5685e7fac090281c97.png 860w, https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/9ae7fa6d5635fa5685e7fac090281c97-300x244.png 300w, https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/9ae7fa6d5635fa5685e7fac090281c97-768x624.png 768w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">OS\u3067\u3059\u304c\u3001\u4eca\u56de\u306fAmazon Linux2\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002\u3002\u3002\u30b3\u30ec\u304c\u5f8c\u3067\u3048\u3089\u3044\u76ee\u306b\u4f1a\u3046\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c(^^;<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u79c1\u306f\u666e\u6bb5\u306fCentOS\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002Amazon Linux2\u306fCentOS7\u3068\u540c\u3058\u3088\u3046\u306a\u69cb\u6210\u3068\u306e\u3053\u3068\u306a\u3093\u3067\u3001\u9055\u3044\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u30de\u30cd\u30fc\u30b8\u30c9DB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/kumapress.com\/?p=5004\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Amazon Linux2\u3068CentOS\u306e\u9055\u3044<\/h2>\n\n\n\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Amazon Linux\u306fRedHat\u30d9\u30fc\u30b9\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fbAmazon \u304c\u30b5\u30dd\u30fc\u30c8\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fbRDS \u3084 S3 \u306a\u3069 AWS \u5185\u306e\u4ed6\u30b5\u30fc\u30d3\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4e8b\u524d\u306b\u5165\u3063\u3066\u3044\u308b\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fbAmazon \u306e yum \u3092\u4f7f\u7528\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fb\u300cAmazon Linux AMI Security Center\u300d\u3067 Amazon Linux \u306b\u5bfe\u3059\u308b\u8106\u5f31\u6027\u306e\u5bfe\u5fdc\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fbSeLinux \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9\u5316\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fb\u30e6\u30fc\u30b6\u540d\u304c root \u3067\u306f\u306a\u304f EC2-user\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fbCentOS\u3068\u540c\u3058\u304f\u539f\u5247\u306f\u7121\u6599\u3002Redhat\u306eAMI\u306f\u4f7f\u7528\u91cf\u306b\u30e9\u30a4\u30bb\u30f3\u30b9\u6599\u91d1\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u6a21\u69d8\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Amazon Linux\u306e\u30e1\u30ea\u30c3\u30c8\u30c7\u30e1\u30ea\u30c3\u30c8<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fb\u30e1\u30ea\u30c3\u30c8<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3000\u30fbAWS\u306b\u76f8\u6027\u304c\u3088\u304f\u3001EC2\u3068\u3057\u3066\u9ad8\u6027\u80fd\u3067\u30bb\u30ad\u30e5\u30a2\u3067\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3000\u30fbAWS CLI (Command Line Interface)\u74b0\u5883\u3084 cloud-init \u306a\u3069 AWS\u95a2\u9023\u306e\u30c4\u30fc\u30eb\u304c\u4e8b\u524d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3000\u30fbRedHat\u3001CentOS\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4f7f\u7528\u3067\u304d\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002Amazon Linux \u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u3068\u7af6\u5408\u3059\u308b\u53ef\u80fd\u6027\u3042\u308a\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3000\u30fb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u304c RedHat\u3001CentOS\u3088\u308a\u9045\u308c\u308b\u5834\u5408\u3042\u308a\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3000\u30fb\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3067\u306e\u60c5\u5831\u306f\u5c11\u306a\u3081\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0\u5229\u7528\u306e\u65b9\u91dd<\/span><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\"><span style=\"font-weight: 400;\">\u660e\u78ba\u306b\u4f7f\u7528\u3057\u305f\u3044 <\/span><span style=\"font-weight: 400;\">RedHat<\/span><span style=\"font-weight: 400;\">\u3001CentOS\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u5834\u5408\u306fCentOS\u3001RedHat \u3092\u4f7f\u7528\u3059\u3079\u304d\u3002<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u307e\u305f\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30b9\u30b5\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fRedHat \u3067\u3082\u3088\u3044\u3002\u305d\u308c\u4ee5\u5916\u3067\u306f Amazon Linux\u3092\u63a1\u7528\u3057\u3066\u3082\u3088\u3044\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">Amazon Linux 2\u306e\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u306f\u3001\u300c2023\u5e7406\u670830\u65e5\u300d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Amazon Linux 2 \u30a4\u30e1\u30fc\u30b8 (HVM\/64 \u30d3\u30c3\u30c8)<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">Amazon Linux 2 \u30a4\u30e1\u30fc\u30b8\u306f\u3001Amazon Lightsail \u3067\u4f7f\u7528\u3059\u308b\u30a2\u30de\u30be\u30f3 \u30a6\u30a7\u30d6 \u30b5\u30fc\u30d3\u30b9\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u3001\u30b5\u30dd\u30fc\u30c8\u304a\u3088\u3073\u7dad\u6301\u3055\u308c\u305f Linux \u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3053\u308c\u306f Lightsale \u4e0a\u3067\u5b9f\u884c\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306b\u3001\u5b89\u5b9a\u3057\u305f\u5b89\u5168\u3067\u9ad8\u6027\u80fd\u306a\u5b9f\u884c\u74b0\u5883\u3092\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u307e\u305f\u3001\u8d77\u52d5\u8a2d\u5b9a\u30c4\u30fc\u30eb\u304a\u3088\u3073\u591a\u304f\u306e AWS \u4e00\u822c\u7684\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30c4\u30fc\u30eb\u306a\u3069\u3001AWS \u306e\u7d71\u5408\u3092\u5bb9\u6613\u306b\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">AWS \u3067\u306f\u3001Amazon Linux 2 \u30a4\u30e1\u30fc\u30b8\u3092\u5b9f\u884c\u3059\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4fdd\u5b88\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u7d99\u7d9a\u7684\u306b\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">Lightsale \u306e\u30e6\u30fc\u30b6\u30fc\u306e\u65b9\u306f\u3001\u8ffd\u52a0\u6599\u91d1\u306a\u3057\u3067 Amazon Linux 2 \u30a4\u30e1\u30fc\u30b8\u3092\u3054\u4f7f\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Lightsail\u3067\u306eCentOS7<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">CentOS Linux \u306f\u3001\u7121\u6599\u516c\u958b\u3055\u308c\u3066\u3044\u308b Red Hat Enterprise Linux (RHEL) \u306e\u30bd\u30fc\u30b9\u304b\u3089\u6d3e\u751f\u3057\u305f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u5bfe\u5fdc\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">CentOS Linux \u306f\u3001RHEL \u3068\u6a5f\u80fd\u7684\u306b\u4e92\u63db\u6027\u304c\u3042\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u4e88\u6e2c\u53ef\u80fd\u304b\u3064\u7ba1\u7406\u53ef\u80fd\u3067\u3001\u518d\u73fe\u6027\u304c\u9ad8\u304f\u5b89\u5b9a\u3057\u305f Linux \u74b0\u5883\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001\u6700\u5c0f\u9650\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u69cb\u7bc9\u3055\u308c\u305f\u516c\u5f0f\u306e CentOS-7 \u30a4\u30e1\u30fc\u30b8 (CentOS-7 x86_64 HVM) \u3067\u3042\u308a\u3001\u3059\u3079\u3066\u306e\u30b5\u30a4\u30ba\u306e Lightsail \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u306e\u4f7f\u7528\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u30a4\u30e1\u30fc\u30b8\u306b\u306f\u3001Lightsail \u5185\u3067\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">SSH \u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">\u3053\u306e CentOS-7 \u30a4\u30e1\u30fc\u30b8\u306b\u306f\u3001\u91cd\u8981\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u542b\u3080\u3088\u3046\u306b\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30de\u30cd\u30fc\u30b8\u30c9DB\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/h2>\n\n\n\n<p><span style=\"font-size: 14pt;\">\u4eca\u56de\u306f\u3001\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308bPostgreSQL\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5107\" src=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/08340d46c8226ebc774674e053a103e9.png\" alt=\"\" width=\"677\" height=\"573\" srcset=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/08340d46c8226ebc774674e053a103e9.png 677w, https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/08340d46c8226ebc774674e053a103e9-300x254.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5108\" src=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/833030ea8ec78e29f9ad01b41dc494e0.png\" alt=\"\" width=\"538\" height=\"719\" srcset=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/833030ea8ec78e29f9ad01b41dc494e0.png 538w, https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/833030ea8ec78e29f9ad01b41dc494e0-224x300.png 224w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">\u8cbb\u7528\u3092\u78ba\u8a8d\u3057\u305f\u3044\u306e\u3067\u30ad\u30fc\u5024\u30bf\u30b0\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5109\" src=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/39bafdcc987909c1af0b2fe0120b9390.png\" alt=\"\" width=\"663\" height=\"631\" srcset=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/39bafdcc987909c1af0b2fe0120b9390.png 663w, https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2020\/09\/39bafdcc987909c1af0b2fe0120b9390-300x286.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u3093\u306a\u611f\u3058\u3067\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f(^^)<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30de\u30cd\u30fc\u30b8\u30c9DB\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/h2>\n\n\n\n<p><span style=\"font-size: 14pt;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u3063\u305f\u304b\u3089\u306b\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059(^^)<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u304c 172.26.xx.xx \u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eIP\u30a2\u30c9\u30ec\u30b9\u304c 172.26.yy.zz \u306a\u3093\u3067\u3001\u30af\u30e9\u30b9B\u306a\u3093\u3060\u301c\u306a\u3093\u3066\u773a\u3081\u306a\u304c\u3089(^^;<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u3066\u308b\u3068\u3001pgAdmin4 \u3067\u306e\u63a5\u7d9a\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u304c\uff01Amazon Linux2 \u306eyum\u306bpgAdmin4\u304c\u7121\u3044\u3093\u3067\u3059\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u4ed5\u65b9\u306a\u3044\u3093\u3067\u3001pgadmin\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304b\u3089\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u7372\u5f97\u3057\u3066\u3001\u518d\u5ea6\u6311\u6226\uff01<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3067\u3082\u3001\u30c0\u30e1\u3002\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">$ sudo yum install pgadmin4<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">amzn2-core \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 | 3.7 kB\u00a0 00:00:00<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">amzn2extra-docker\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 | 3.0 kB\u00a0 00:00:00<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\">https:\/\/ftp.postgresql.org\/pub\/pgadmin\/pgadmin4\/yum\/redhat\/rhel-2-x86_64\/repodata\/repomd.xml: [Errno 14] HTTPS Error 404 &#8211; Not Found<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30ea\u30dd\u30b8\u30c8\u30ea\u306e $releasever \u304c 2 \u306b\u306a\u3063\u3061\u3083\u3063\u3066\u307e\u3059\u3002\u3002<span style=\"font-weight: 400;\">rhel-2-x86_64\uff1f\uff1f\uff1f<\/span><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u3042\u305f\u308a\u306f \/etc\/redhat-release \u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Amazon Linux2 \u3067\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u305d\u3046\u3044\u3084\u3001CentOS7\u3063\u307d\u3044\u3084\u3064\u306a\u3093\u3067\u3001$releasever\u30927\u306b\u66f8\u304d\u63db\u3048\u3066\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u30fb\u30fb\u30fb\u304c\u3001\u3084\u3063\u3071\u308aNG\u3002\u3002<\/span><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" >$ sudo yum install pgadmin4\n\u3044\u3063\u3071\u3044\u30a8\u30e9\u30fc\uff1a\u30d1\u30c3\u30b1\u30fc\u30b8\uff1a\u306a\u8868\u793a\u3002\u3002\u3002\n \u554f\u984c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b --skip-broken \u3092\u7528\u3044\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:\npgdg-redhat-repo-42.0-12.noarch \u306f\u6b21\u306e\u8981\u6c42\u304c\u4e0d\u8db3\u3066\u3044\u307e\u3059:  \/etc\/redhat-release\n\n\u98db\u3070\u3057\u307e\u3057\u305f (\u4f9d\u5b58\u6027\u306e\u554f\u984c):\n  pgadmin4.noarch 0:4.25-1.el7       pgadmin4-desktop.x86_64 0:4.25-1.el7   pgadmin4-python3-mod_wsgi.x86_64 0:4.7.1-2.el7   pgadmin4-server.x86_64 0:4.25-1.el7\n  pgadmin4-web.noarch 0:4.24-1.el7   pgadmin4-web.noarch 0:4.25-1.el7       postgresql12-libs.x86_64 0:12.4-1PGDG.rhel7\n\n<\/pre><\/div>\n\n\n\n<p><span style=\"font-size: 14pt;\">web\u3084\u3089desktop\u3084\u3089\u304c\u98db\u3070\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u307e\u3059\u3002\u3053\u308c\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3068\u3057\u3066\u3082\u3001GUI\u3067\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b\u306e\u304b\u306a\uff1f\uff1f<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u4ed5\u65b9\u306a\u3044\u3093\u3067\u3001python3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6311\u6226\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u7d50\u679c\u7684\u306b\u306f\u3053\u308c\u3082NG\u3067\u3057\u305f\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Python3\u3068gcc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<\/span><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" >\u25a0pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\n$ sudo mkdir \/var\/lib\/pgadmin\n$ sudo mkdir \/var\/log\/pgadmin\n$ sudo chown $USER \/var\/lib\/pgadmin\n$ sudo chown $USER \/var\/log\/pgadmin\n$ python3 -m venv pgadmin4\n$ source pgadmin4\/bin\/activate\n(pgadmin4) [ec2-user@ip-172-26-14-35 ~]$ pip install pgadmin4\nCollecting pgadmin4\nERROR: Exception:\nTraceback (most recent call last):\n  File \"\/home\/ec2-user\/pgadmin4\/lib64\/python3.7\/site-packages\/pip\/_internal\/cli\/base_command.py\", line 228, in _main\n    status = self.run(options, args)\n  File \"\/home\/ec2-user\/pgadmin4\/lib64\/python3.7\/site-packages\/pip\/_internal\/cli\/req_command.py\", line 182, in wrapper\n    return func(self, options, args)\n  File \"\/home\/ec2-user\/pgadmin4\/lib64\/python3.7\/site-packages\/pip\/_internal\/commands\/install.py\", line 324, in run\n    reqs, check_supported_wheels=not options.target_dir\n<\/pre><\/div>\n\n\n\n<p><span style=\"font-size: 14pt;\">\u307e\u3001\u3053\u3093\u306a\u611f\u3058\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3042\u304d\u3089\u3081\u3066\u3001\u3044\u3064\u3082\u3068\u304a\u306a\u3058\u3001pgsql\u3067\u3084\u308b\u3053\u3068\u306b\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3067\u3082\u3001\u3042\u3068\u3042\u3068\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u8003\u3048\u308b\u3068\u3001pgadmin4\u3092\u52d5\u304b\u3057\u305f\u304b\u3063\u305f\u306a\u3041\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u65b9\u304a\u3089\u308c\u307e\u3057\u305f\u3089\u3001\u305c\u3072\u6559\u3048\u3066\u4e0b\u3055\u3044m(_ _)m<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Postgresql12\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/h2>\n\n\n\n<p><span style=\"font-size: 14pt;\">\u307e\u305a\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u60c5\u5831\u3092\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">$ yum info postgresql<\/span><br \/><span style=\"font-size: 14pt;\">\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:extras_suggestions, langpacks, priorities, update-motd<\/span><br \/><span style=\"font-size: 14pt;\">27 packages excluded due to repository priority protections<\/span><br \/><span style=\"font-size: 14pt;\">\u5229\u7528\u53ef\u80fd\u306a\u30d1\u30c3\u30b1\u30fc\u30b8<\/span><br \/><span style=\"font-size: 14pt;\">\u540d\u524d : postgresql<\/span><br \/><span style=\"font-size: 14pt;\">\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc : x86_64<\/span><br \/><span style=\"font-size: 14pt;\">\u30d0\u30fc\u30b8\u30e7\u30f3 : 9.2.24<\/span><br \/><span style=\"font-size: 14pt;\">\u30ea\u30ea\u30fc\u30b9 : 1.amzn2.0.1<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3042\u3089\u3089\u3001\u6a19\u6e96\u3067\u306fPostgresql9\u306a\u3093\u3067\u3059\u306d\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Amazon Linux 2\u306f\u6982\u306dCentOS 7\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001CentOS 7\u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><br \/><span style=\"font-size: 14pt;\">https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">$ sudo rpm -ivh https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\/etc\/redhat-release\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u7121\u8996\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u3001\u300c&#8211;nodeps\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">$ sudo rpm -ivh &#8211;nodeps https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-7-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3055\u3066\u3001\u5148\u3068\u540c\u3058\u3067\u3001\u301c.repo\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u201d$releasever\u201d\u304c\u30012\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u201d$releasever\u201d\u3092\u201d7\u201d\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">$ sudo sed -i &#8216;s\/\\$releasever\/7\/g&#8217; \/etc\/yum.repos.d\/pgdg-redhat-all.repo<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">$ sudo yum install -y postgresql12<\/span><br \/><span style=\"font-size: 14pt;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:<\/span><br \/><span style=\"font-size: 14pt;\">postgresql12 x86_64 12.4-1PGDG.rhel7 pgdg12 1.6 M<\/span><br \/><span style=\"font-size: 14pt;\">\u4f9d\u5b58\u6027\u95a2\u9023\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059:<\/span><br \/><span style=\"font-size: 14pt;\">postgresql12-libs x86_64 12.4-1PGDG.rhel7 pgdg12 370 k<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01\u3084\u308c\u3084\u308c(^^;<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/h2>\n\n\n\n<p>\u3088\u3046\u3084\u304f\u30af\u30e9\u30a4\u30f3\u30c8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3093\u3067\u3001\u63a5\u7d9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><span style=\"font-weight: 400;\">$ psql -h \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8 -U dbmasteruser postgres<\/span><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" >postgres=&gt; \\l\n                                               \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7\n   \u540d\u524d    |    \u6240\u6709\u8005    | \u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 |  \u7167\u5408\u9806\u5e8f   | Ctype(\u5909\u63db\u6f14\u7b97\u5b50) |         \u30a2\u30af\u30bb\u30b9\u6a29\u9650\n-----------+--------------+------------------+-------------+-------------------+-------------------------------\n dbmaster  | dbmasteruser | UTF8             | en_US.UTF-8 | en_US.UTF-8       |\n postgres  | dbmasteruser | UTF8             | en_US.UTF-8 | en_US.UTF-8       |\n rdsadmin  | rdsadmin     | UTF8             | en_US.UTF-8 | en_US.UTF-8       | rdsadmin=CTc\/rdsadmin\n template0 | rdsadmin     | UTF8             | en_US.UTF-8 | en_US.UTF-8       | =c\/rdsadmin                  +\n           |              |                  |             |                   | rdsadmin=CTc\/rdsadmin\n template1 | dbmasteruser | UTF8             | en_US.UTF-8 | en_US.UTF-8       | =c\/dbmasteruser              +\n           |              |                  |             |                   | dbmasteruser=CTc\/dbmasteruser\n<\/pre><\/div>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" >CREATE DATABASE db01\n template template0\n encoding UTF8\n lc_collate \u2018ja_JP.UTF-8\u2019\n lc_ctype \u2018ja_JP.UTF-8\u2019;\n\n   \u540d\u524d    |    \u6240\u6709\u8005    | \u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 |  \u7167\u5408\u9806\u5e8f   | Ctype(\u5909\u63db\u6f14\u7b97\u5b50) |         \u30a2\u30af\u30bb\u30b9\u6a29\u9650\n-----------+--------------+------------------+-------------+-------------------+-------------------------------\n db01      | dbmasteruser | UTF8             | ja_JP.UTF-8 | ja_JP.UTF-8       |\n<\/pre><\/div>\n\n\n\n<p><span style=\"font-size: 14pt;\">\u7121\u4e8b\u4f7f\u3048\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\uff01<\/span><\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 2\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"5379270693\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 1\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"7353370294\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>Lightsail\u74b0\u5883\u3067\u30de\u30cd\u30fc\u30b8\u30c9DB\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002 \u3063\u3068\u3044\u3063\u3066\u3082\u3001\u3053\u308c\u3060\u3051\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u3082\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u8fbc\u307f\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002 \u8cbb\u7528\u611f\u3067\u3059\u304c\u3001\u3053\u3093\u306a\u611f\u3058\u3002\u3002 OS\u3067\u3059\u304c\u3001\u4eca\u56de\u306fAmazon Li [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5038,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[126],"tags":[172,174],"class_list":["post-5100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-memo","tag-lightsail","tag-174"],"_links":{"self":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5100"}],"version-history":[{"count":15,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5100\/revisions"}],"predecessor-version":[{"id":5119,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5100\/revisions\/5119"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/media\/5038"}],"wp:attachment":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}