{"id":314,"date":"2022-07-18T13:14:38","date_gmt":"2022-07-18T04:14:38","guid":{"rendered":"http:\/\/192.168.0.139:8080\/2022\/07\/18\/google-cloud%e3%81%ae%e6%b0%b8%e4%b9%85%e7%84%a1%e6%96%99%e6%9e%a0e2-micro%e3%81%a7%e3%83%96%e3%83%ad%e3%82%b0%e9%81%8b%e7%94%a8\/"},"modified":"2022-07-18T13:14:38","modified_gmt":"2022-07-18T04:14:38","slug":"google-cloud%e3%81%ae%e6%b0%b8%e4%b9%85%e7%84%a1%e6%96%99%e6%9e%a0e2-micro%e3%81%a7%e3%83%96%e3%83%ad%e3%82%b0%e9%81%8b%e7%94%a8","status":"publish","type":"post","link":"http:\/\/192.168.0.139:8080\/2022\/07\/18\/314\/","title":{"rendered":"Google Cloud\u306e\u6c38\u4e45\u7121\u6599\u67a0e2-micro\u3067\u30d6\u30ed\u30b0\u904b\u7528"},"content":{"rendered":"\n

\u7121\u6599\u3067\u30d6\u30ed\u30b0\u904b\u7528\u3092\u5e83\u544a\u7121\u3057\u3001\u5236\u9650\u306a\u3057\u3067\u53ef\u80fd\u3067\u3057\u3087\u3046\u304b\u3002\u7b54\u3048\u306f\u53ef\u80fd\u3067\u3059\u3002\u691c\u7d22\u3059\u308b\u3068\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306a\u3069\u306e\u904b\u7528\u3092\u3059\u308b\u306b\u306f\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u65e5\u672c\u306e\u696d\u8005\u3092\u63a2\u3057\u3066\u3044\u308b\u3068\u591a\u6570\u3042\u308a\u307e\u3059\u3002

\u81ea\u5206\u306a\u308a\u306b\u898b\u3064\u3051\u305f\u30b5\u30fc\u30d3\u30b9
ConoHa\u3001\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc\u3001\u30ed\u30ea\u30dd\u30c3\u30d7\u3001mixhost\u3001\u3055\u304f\u3089\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3001\u30ab\u30b4\u30e4\u30b8\u30e3\u30d1\u30f3\u306a\u3069<\/p>\n\n\n\n

\u81ea\u5206\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u65e5\u672c\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306fGMO\u30b0\u30ed\u30fc\u30d0\u30eb\u30b5\u30a4\u30f3\u306eWappy\u3060\u3051\u3067\u3059\u3002\u682a\u4e3b\u512a\u5f85\u3067\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u5c11\u3057\u3060\u3051\u8db3\u304c\u51fa\u307e\u3059\u3002\u3082\u3063\u305f\u3044\u306a\u3044\u306e\u3067\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u672c\u65e5\u306fGoogle Cloud\u306e\u7121\u6599\u30d7\u30e9\u30f3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306fLinux\u3084Windows\u306a\u3069\u306e\u57fa\u672cOS\u3092\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n

https:\/\/cloud.google.com\/free\/docs\/gcp-free-tier\/#compute<\/a><\/p>\n\n\n\n

\u30ed\u30ea\u30dd\u30c3\u30d7\u306a\u3069\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u30dc\u30bf\u30f3\u4e00\u767a\u3067\u4f5c\u6210\u3067\u304d\u308b\u306e\u3067\u521d\u5fc3\u8005\u3067\u3082\u6bd4\u8f03\u7684\u5bb9\u6613\u306b\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Google Cloud\u306e\u3088\u3046\u306a\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306fOS\u304b\u3089\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306b\u306f\u3001\u307b\u304b\u306b\u3082AWS\u3001Azure\u3001OCI\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u305d\u308c\u3067\u306fGoogle Cloud\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u30ea\u30fc\u30b8\u30e7\u30f3\u306f\u7c73\u56fd\u306e\u4e00\u90e8\u3067\u3057\u304b\u7121\u6599\u67a0\u304c\u9069\u7528\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u3053\u3067\u306fus-central1\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002\u30de\u30b7\u30f3\u306e\u69cb\u6210\u3067\u306f\u30b7\u30ea\u30fc\u30ba\u3092E2\u3001\u30de\u30b7\u30f3\u30bf\u30a4\u30d7\u3092e2-micro\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306e\u9805\u76ee\u3067\u306f\u5909\u66f4\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002OS\u306fCentOS Stream 9\u306b\u3057\u307e\u3057\u305f\u3002\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306e\u7a2e\u985e\u3067\u306f\u521d\u671f\u5024\u304c\u30d0\u30e9\u30f3\u30b9\u6c38\u7d9a\u30c7\u30a3\u30b9\u30af\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u6a19\u6e96\u6c38\u7d9a\u30c7\u30a3\u30b9\u30af\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u7121\u6599\u67a0\u306b\u95a2\u3059\u308b\u8aac\u660e\u306b30GB\u306e\u6a19\u6e96\u6c38\u7d9a\u30c7\u30a3\u30b9\u30af\u3068\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3057\u3001\u30d0\u30e9\u30f3\u30b9\u6c38\u7d9a\u30c7\u30a3\u30b9\u30af\u306e\u65b9\u304c\u6599\u91d1\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u4ed6\u306b\u3082\u8a2d\u5b9a\u9805\u76ee\u304c\u591a\u6570\u3042\u308a\u307e\u3059\u304c\u3001\u4e00\u90e8\u3092\u9664\u3044\u3066\u5f8c\u304b\u3089\u5909\u66f4\u3067\u304d\u308b\u306e\u3067\u3053\u306e\u8a2d\u5b9a\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u63a5\u7d9a\u3092\u3057\u307e\u3059\u3002Google Cloud\u306b\u3042\u308b\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u308bSSH\u63a5\u7d9a\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u3053\u3053\u3067\u306fTeraTerm\u306b\u3088\u308b\u63a5\u7d9a\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002TeraTerm\u306e\u8a2d\u5b9a\u306b\u3042\u308b\u300cSSH\u9375\u751f\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u9375\u3092\u4f5c\u308a\u307e\u3059\u3002\u521d\u671f\u5024\u306e\u72b6\u614b\u3067\u751f\u6210\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u3059\u308b\u3068\u3001\u516c\u958b\u9375\u3068\u79d8\u5bc6\u9375\u3092\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u9375\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u5165\u529b\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u7a7a\u767d\u306b\u3057\u307e\u3057\u305f\u3002\u30b3\u30e1\u30f3\u30c8\u6b04\u306b\u306f\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u4e21\u65b9\u306e\u9375\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

Google Cloud\u306e\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u306b\u623b\u308a\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u8d77\u52d5\u4e2d\u3067\u3082\u4e00\u90e8\u3092\u9664\u3044\u3066\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3068SSH\u8a8d\u8a3c\u9375\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30e1\u30e2\u5e33\u306a\u3069\u3067\u516c\u958b\u9375\u3092\u958b\u3044\u3066\u3001\u305d\u306e\u5185\u5bb9\u3059\u3079\u3066\u3092Google Cloud\u306eSSH\u8a8d\u8a3c\u9375\u306e\u9805\u76ee\u306b\u30b3\u30d4\u30da\u3057\u307e\u3059\u3002\u516c\u958b\u9375\u306f\u62e1\u5f35\u5b50\u304c.pub\u3068\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u5fd8\u308c\u305a\u306b\u8ffd\u52a0\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u904e\u53bb\u306b\u4f55\u56de\u3082\u7acb\u3061\u4e0a\u3052\u3066\u3044\u308b\u306e\u3067Google Cloud\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u306b\u30dd\u30fc\u30c8\u756a\u53f722\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3082\u8a31\u53ef\u3057\u3066\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u63a5\u7d9a\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002TeraTerm\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u65b0\u3057\u3044\u63a5\u7d9a\u306b\u304a\u3044\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5272\u308a\u632f\u3089\u308c\u305f\u5916\u90e8IP\u30a2\u30c9\u30ec\u30b9\u3092\u30db\u30b9\u30c8\u306e\u9805\u76ee\u306b\u5165\u529b\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u30b3\u30e1\u30f3\u30c8\u306b\u8a18\u8ff0\u3057\u305f\u5185\u5bb9\u3067\u3059\u3002\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u7a7a\u767d\u306e\u307e\u307e\u306b\u3057\u3066\u3001\u8a8d\u8a3c\u65b9\u5f0f\u3067\u79d8\u5bc6\u9375\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u79d8\u5bc6\u9375\u3092\u8aad\u307f\u8fbc\u3093\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u63a5\u7d9a\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u304b\u3089\u306fLinux\u306e\u77e5\u8b58\u3067\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002root\u306b\u5207\u308a\u66ff\u3048\u3066\u4f5c\u696d\u3092\u3057\u307e\u3059\u3002OS\u304cCentOS\u306a\u306e\u3067SELinux\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

getenforce<\/code><\/pre>\n\n\n\n

Enforcing\u3068\u306a\u308a\u3001\u6587\u5b57\u901a\u308a\u65bd\u884c\u4e2d\u3067\u3059\u3002\u306a\u306b\u304b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u3001\u601d\u308f\u306c\u30c8\u30e9\u30d6\u30eb\u306b\u5dfb\u304d\u8fbc\u307e\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u89e3\u6c7a\u306b\u82e6\u52b4\u3059\u308b\u306e\u3067\u3001\u4e00\u6642\u7684\u306b\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

setenforce 0<\/code><\/pre>\n\n\n\n

\u518d\u5ea6\u3001\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3068Permissive\u3068\u306a\u308a\u7121\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u30ed\u30b0\u76e3\u8996\u6a5f\u80fd\u306f\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u518d\u8d77\u52d5\u5f8c\u306b\u3082\u5b8c\u5168\u306b\u7121\u52b9\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

vi \/etc\/selinux\/config<\/code><\/pre>\n\n\n\n

SELINUX=enforcing\u3092disable\u306b\u3057\u307e\u3059\u3002\u8a18\u8ff0\u30df\u30b9\u304c\u3042\u308b\u3068\u518d\u8d77\u52d5\u5f8c\u306b\u30c8\u30e9\u30d6\u30eb\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u6b21\u306fDocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u691c\u7d22\u3057\u3066\u3082\u3042\u307e\u308a\u60c5\u5831\u304c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u3053\u3067\u3001CentOS stream 9\u3067\u306fDocker\u4e92\u63db\u306ePodman\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u306a\u306e\u3067\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3053\u3061\u3089\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002Podman\u3068\u306f\u3001RedHat\u793e\u304c\u958b\u767a\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002OSS\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

dnf install podman<\/code><\/pre>\n\n\n\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u5f8c\u306b\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

systemctl status podman<\/code><\/pre>\n\n\n\n

\u25cb podman.service – Podman API Service
Loaded: loaded (\/usr\/lib\/systemd\/system\/podman.service; enabled; vendor pr>
Active: inactive (dead) since<\/p>\n\n\n\n

\u30a2\u30af\u30c6\u30a3\u30d6\u3067\u306a\u3044\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u8d77\u52d5\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306e\u8a2d\u5b9a\u3082\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

systemctl start podman\nsystemctl enable podman<\/code><\/pre>\n\n\n\n

\u3053\u308c\u3067podman\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\u6700\u521d\u306b\u3084\u308b\u3079\u304d\u3067\u3057\u305f\u304c\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u5730\u57df\u3084\u6642\u9593\u3092\u65e5\u672c\u306b\u3057\u307e\u3059\u3002\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3068\u65e5\u672c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n

localectl status<\/code><\/pre>\n\n\n\n

\u30ed\u30b1\u30fc\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u30ed\u30b1\u30fc\u30eb\u3068\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u304a\u3044\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8a00\u8a9e\u3001\u5730\u57df\u3001\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30fc\u304c\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u8868\u793a\u3057\u305f\u3044\u7279\u5225\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u8a2d\u5b9a\u3092\u5b9a\u7fa9\u3059\u308b\u4e00\u9023\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n

localectl set-locale LANG=ja_JP.utf8<\/code><\/pre>\n\n\n\n

\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

Failed to issue method call: Locale ja_JP.utf8 not installed, refusing.<\/p>\n\n\n\n

\u6b21\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n

dnf install glibc-langpack-ja<\/code><\/pre>\n\n\n\n

\u518d\u5ea6\u3001\u30ed\u30b1\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u554f\u984c\u3092\u89e3\u6c7a\u3067\u304d\u307e\u3057\u305f\u3002\u540c\u3058\u3088\u3046\u306b\u3057\u3066\u73fe\u5728\u306e\u6642\u9593\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u65e5\u672c\u6642\u9593\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

timedatectl status\ntimedatectl set-timezone Asia\/Tokyo<\/code><\/pre>\n\n\n\n

\u3088\u3046\u3084\u304f\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067\u3001Wordpress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Podman\u3092\u4f7f\u3048\u3070\u5bb9\u6613\u306b\u4f5c\u6210\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002\u516c\u5f0f\u30da\u30fc\u30b8\u306b\u3082\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

podman run --name blog \n -p 80:80 \n -p 443:443 \n -d wordpress<\/code><\/pre>\n\n\n\n

? registry.access.redhat.com\/wordpress:latest
registry.redhat.io\/wordpress:latest
docker.io\/library\/wordpress:latest<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u4e0a\u8a18\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u3055\u308c\u305f\u3089docker\u4ee5\u964d\u3092\u30b3\u30d4\u30da\u3059\u308b\u304b\u3001\u30b3\u30de\u30f3\u30c9\u3092\u9014\u4e2d\u3067\u505c\u6b62\u3057\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

podman run --name blog \n -p 80:80 \n -p 443:443 \n -d docker.io\/library\/wordpress:latest<\/code><\/pre>\n\n\n\n

\u307e\u305f\u5fd8\u308c\u306a\u3046\u3061\u306b\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3092\u505c\u6b62\u3059\u308b\u304b\u3001\u30dd\u30fc\u30c8\u756a\u53f780\u3068443\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u5f8c\u8005\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u73fe\u72b6\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

firewall-cmd --list-all<\/code><\/pre>\n\n\n\n

SSH\u63a5\u7d9a\u3057\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u306b\u3001\u305d\u306e\u9805\u76ee\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30be\u30fc\u30f3\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5168\u3066\u306e\u30be\u30fc\u30f3\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

firewall-cmd --get-default-zone\nfirewall-cmd --list-all-zones<\/code><\/pre>\n\n\n\n

\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u304ctrusted\u3067\u3001\u8907\u6570\u30be\u30fc\u30f3\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002SSH\u306fexternal\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002Web\u30b5\u30fc\u30d0\u30fc\u7528\u306bhttp\u3068https\u3092\u6052\u4e45\u7684\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002permanent\u304c\u306a\u3044\u3068\u30b7\u30b9\u30c6\u30e0\u518d\u8d77\u52d5\u6642\u306b\u8a2d\u5b9a\u304c\u5143\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

firewall-cmd --add-service=http --permanent\nfirewall-cmd --add-service=https --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n

Google Cloud\u306e\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u3067\u3082\u540c\u69d8\u306b\u3053\u308c\u3089\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u3053\u308c\u3067\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8a2d\u5b9a\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

podman exec -it blog bash<\/code><\/pre>\n\n\n\n

\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308b\u3068\u4e01\u5ea6\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3044\u305f\u306e\u3067\u30b5\u30f3\u30d7\u30eb\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

mv wp-config-sample.php wp-config.php<\/code><\/pre>\n\n\n\n

\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

vi wp-config.php<\/code><\/pre>\n\n\n\n

\u30a8\u30c7\u30a3\u30bf\u304c\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u305d\u306e\u524d\u306b\u66f4\u65b0\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n

\u3057\u304b\u3057\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

root@1812140a4e13:\/var\/www\/html# apt update
Err:1 http:\/\/deb.debian.org\/debian bullseye InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
Err:2 http:\/\/deb.debian.org\/debian-security bullseye-security InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:5f::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
Err:3 http:\/\/deb.debian.org\/debian bullseye-updates InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable)
Reading package lists\u2026 Done
Building dependency tree\u2026 Done
Reading state information\u2026 Done
All packages are up to date.
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian-security\/dists\/bullseye-security\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:5f::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye-updates\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@1812140a4e13:\/var\/www\/html# ^C
root@1812140a4e13:\/var\/www\/html# apt update
Err:1 http:\/\/deb.debian.org\/debian bullseye InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
Err:2 http:\/\/deb.debian.org\/debian-security bullseye-security InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
Err:3 http:\/\/deb.debian.org\/debian bullseye-updates InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:58::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.126.132), connection timed out
Reading package lists\u2026 Done
Building dependency tree\u2026 Done
Reading state information\u2026 Done
All packages are up to date.
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian-security\/dists\/bullseye-security\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye-updates\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:58::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.126.132), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.<\/p>\n\n\n\n

\u3044\u3064\u3082\u306f\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u4f5c\u696d\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u306f\u5b66\u7fd2\u304c\u3066\u3089\u30db\u30b9\u30c8\u3068\u30b3\u30f3\u30c6\u30ca\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5171\u6709\u3059\u308b\u65b9\u6cd5\u3092\u8a66\u3057\u307e\u3059\u3002\u5171\u6709\u3068\u304b\u30de\u30a6\u30f3\u30c8\u3067\u691c\u7d22\u3059\u308b\u3068\u51fa\u3066\u304d\u307e\u3059\u3002\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3001php\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001web\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30db\u30b9\u30c8\u95a2\u9023\u3084\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a18\u8ff0\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082MySQL\u306b\u63a5\u7d9a\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u306a\u3044\u3068\u56f0\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u8abf\u3079\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u5b9f\u306f\u6b21\u306e\u65e5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3089\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

php\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u2192\/usr\/local\/etc\/php
Web\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u2192\/etc\/apache2
\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u2192\/var\/www\/html<\/p>\n\n\n\n

\u30ea\u30dd\u30b8\u30c8\u30ea\u95a2\u9023\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u542b\u3081\u3001\u3053\u308c\u3089\u3092Podman\u306e\u30b3\u30d4\u30fc\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e00\u5ea6\u30db\u30b9\u30c8\u306b\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u51fa\u3066\u30db\u30b9\u30c8\u3067\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

mkdir blog\npodman cp blog:\/usr\/local\/etc\/php \/root\/blog\/\npodman cp blog:\/etc\/apache2 \/root\/blog\/\npodman cp blog:\/var\/www\/html \/root\/blog\/\npodman cp blog:\/etc\/apt \/root\/blog\/\npodman cp blog:\/etc\/resolv.conf \/root\/blog<\/code><\/pre>\n\n\n\n

\u30db\u30b9\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u5bc4\u305b\u305f\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3057\u3066\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

podman stop blog\npodman rm blog<\/code><\/pre>\n\n\n\n

\u4eca\u5ea6\u306f\u30de\u30a6\u30f3\u30c8\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u8ffd\u52a0\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<\/p>\n\n\n\n

podman run --name blog \n -p 80:80 \n -p 443:443 \n -v \/root\/blog\/php:\/usr\/local\/etc\/php \n -v \/root\/blog\/apache2:\/etc\/apache2 \n -v \/root\/blog\/html:\/var\/www\/html \n -v \/root\/blog\/resolv.conf:\/etc\/resolv.conf \n -v \/root\/blog\/apt:\/etc\/apt \n -d docker.io\/library\/wordpress<\/code><\/pre>\n\n\n\n

\u3046\u307e\u304f\u30b3\u30f3\u30c6\u30ca\u304c\u7acb\u3061\u4e0a\u304c\u3063\u305f\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5148\u307b\u3069\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bresolv.conf\u306e\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u5ff5\u306e\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u30db\u30b9\u30c8\u3067\u5909\u66f4\u3092\u52a0\u3048\u305f\u3053\u3068\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u8ff0\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

nameserver\u306eIP\u30a2\u30c9\u30ec\u30b9\u30928.8.8.8\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\u30db\u30b9\u30c8\u3068\u30b3\u30f3\u30c6\u30ca\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u5171\u6709\u72b6\u614b\u306b\u3042\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u30db\u30b9\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3092\u52a0\u3048\u308c\u3070\u30b3\u30f3\u30c6\u30ca\u306b\u3082\u53cd\u6620\u3055\u308c\u308b\u306e\u3067\u3001\u57fa\u672c\u7684\u306b\u306f\u30db\u30b9\u30c8\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u306a\u3044\u306e\u3067\u3001\u540c\u69d8\u306b\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4e00\u756a\u8ca0\u8377\u304c\u304b\u304b\u308b\u306e\u3067AWS\u306b\u3042\u308bRDS\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306fRDS\u306b\u5916\u90e8\u63a5\u7d9a\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u4f5c\u696d\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306e\u8a18\u4e8b\u306b\u3066\u8aac\u660e\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\nhttps:\/\/minokamo.tokyo\/2021\/12\/10\/4190\/\n<\/div><\/figure>\n\n\n\n
\nhttps:\/\/minokamo.tokyo\/2022\/03\/26\/4506\/\n<\/div><\/figure>\n\n\n\n

\u518d\u3073\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066MySQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

apt install mysql-client<\/code><\/pre>\n\n\n\n

Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source<\/p>\n\n\n\n

E: Package ‘mysql-client’ has no installation candidate<\/p>\n\n\n\n

mysql\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u306e\u3067mariadb\u306e\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

apt install mariadb-client<\/code><\/pre>\n\n\n\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u305f\u306e\u3067RDS\u306b\u63a5\u7d9a\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

mysql -h database.cuvluie44xx8.us-east-2.rds.amazonaws.com -u admin -p\ncreate database blog;\nexit<\/code><\/pre>\n\n\n\n

\u3053\u308c\u3067\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u30d6\u30e9\u30a6\u30b6\u306bGoogle Cloud\u306e\u5916\u90e8IP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002
\u3082\u3057\u3001\u65e5\u672c\u8a9e\u74b0\u5883\u3092\u671b\u3080\u65b9\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u516c\u5f0f\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5c55\u958b\u3059\u308c\u3070OK\u3067\u3059\u3002
\u6700\u521d\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5236\u9650\u306a\u3069\u304c\u3042\u308b\u306e\u3067\u3001\u30de\u30a6\u30f3\u30c8\u3057\u305fphp\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

https:\/\/ja.wordpress.org\/<\/a><\/p>\n\n\n\n

\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001\u3053\u306e\u4f8b\u3067\u306fhtml\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u306b\u79fb\u52d5\u3057\u3066\u4e00\u62ec\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

rm -rf *<\/code><\/pre>\n\n\n\n

\u65e5\u672c\u8a9e\u7248\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

wget https:\/\/ja.wordpress.org\/latest-ja.tar.gz<\/code><\/pre>\n\n\n\n

wget\u304c\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

dnf install wget<\/code><\/pre>\n\n\n\n

\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

tar zxvf latest-ja.tar.gz<\/code><\/pre>\n\n\n\n

\u5c55\u958b\u3057\u305f\u3089wordpress\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3066\u3001\u305d\u306e\u914d\u4e0b\u306b\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002\u3053\u308c\u3067\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u3079\u3066\u79fb\u52d5\u3057\u307e\u3059\u3002\u4f5c\u6210\u3055\u308c\u305fwordpress\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u3059\u3079\u3066\u6240\u5b9a\u306e\u5834\u6240\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

mv *.* \/root\/blog\/html\nmv * \/root\/blog\/html<\/code><\/pre>\n\n\n\n

\u7a7a\u306b\u306a\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

cd \/root\/blog\/html\nrm -rf wordpress\nrm latest-ja.tar.gz<\/code><\/pre>\n\n\n\n

\u5148\u307b\u3069\u3068\u540c\u69d8\u306b\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n