{"id":4346,"date":"2024-05-08T21:10:52","date_gmt":"2024-05-08T12:10:52","guid":{"rendered":"https:\/\/www.thun-techblog.com\/?p=4346"},"modified":"2025-01-25T16:59:53","modified_gmt":"2025-01-25T07:59:53","slug":"webarena-indigo-wordpress-srv-v2","status":"publish","type":"post","link":"https:\/\/www.thun-techblog.com\/index.php\/blog\/webarena-indigo-wordpress-srv-v2\/","title":{"rendered":"WebARENA Indigo\u3067WordPress\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b"},"content":{"rendered":"\n<p>\u3053\u306e\u30b5\u30a4\u30c8\u306f\u6700\u521d\u306e\u6570\u5e74\u306f\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u305d\u306e\u5f8c\u6570\u5e74\u306fWebARENA Indigo\u3092\u7528\u3044\u3066\u904b\u55b6\u3092\u7d9a\u3051\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u30b5\u30fc\u30d0\u30fc\u30de\u30b7\u30f3\u3082\u53e4\u3044\u306e\u3067\u8272\u3005\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u306e\u3068\u3001\u6700\u8fd1\u5c11\u3057\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u6a5f\u80fd\u3067\u3082\u8ffd\u52a0\u3057\u3088\u3046\u304b\u3068\u753b\u7b56\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u4e45\u3057\u3076\u308a\u306b\u624b\u3092\u52a0\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u8272\u3005\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u8abf\u3079\u3066\u5c45\u308b\u3068SSH\u5468\u308a\u306b\u66f4\u65b0\u304c\u3042\u3063\u305f\u3088\u3046\u3067\u53e4\u3044\u8a8d\u8a3c\u65b9\u5f0f\u304c\u4f7f\u3048\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u7de0\u3081\u51fa\u3055\u308c\u308b\u304b\u3082\u7684\u306a\u8a71\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002\u305d\u306e\u56de\u907f\u65b9\u6cd5\u3082\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u3001\u4f55\u3082\u8003\u3048\u305a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u8a18\u3057\u3066\u3001\u8af8\u3005\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u3057\u3066<strong>SSH\u304b\u3089\u7de0\u3081\u51fa\u3055\u308c\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u3082\u3067\u304d\u305a<\/strong>\u7121\u4e8b\u3084\u3089\u304b\u3057\u307e\u3057\u305f(\u82e6\u7b11)\u3002\u6614\u306b\u8a2d\u5b9a\u3057\u305f\u3068\u304d\u306b\u7126\u3063\u3066\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a\u3092\u5fd8\u308c\u3066\u3044\u305f\u3093\u3067\u3059\u3088\u306d\u2026\u3057\u304b\u3082(\u3042\u308c\u307b\u3069\u5b89\u4fa1\u306a)\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u9762\u5012\u304f\u3055\u3044\u3068\u601d\u3044\u53d6\u3089\u305a\u306b\u3084\u3063\u305f\u7d50\u679c\u304c\u3053\u308c\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5e78\u3044\u306a\u3053\u3068\u306f\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30f3\u30c4\u306eWordpress\u306f\u5b9a\u671f\u7684\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u53d6\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3092\u3084\u308a\u76f4\u305b\u3070\u30c7\u30fc\u30bf\u306f\u5fa9\u65e7\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002\u3042\u3068\u306f\u3001\u5b9f\u306f\u30d9\u30fc\u30b9\u306e\u30d7\u30e9\u30f3\u304c\u53e4\u3044\u3082\u306e\u306e\u305f\u3081\u3001IPv6\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u74b0\u5883\u3067\u3001\u3044\u3044\u52a0\u6e1bIPv6\u5bfe\u5fdc\u306e\u30b5\u30a4\u30c8\u306b\u3057\u3088\u3046\u3068\u3044\u3046\u306e\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u3063\u3066\u79fb\u52d5\u3055\u305b\u308b\u3060\u3051\u3067\u4e0a\u624b\u304f\u3044\u304f\u304b\u306f\u4e0d\u660e\u3060\u3063\u305f\u306e\u3067\u300c\u4f5c\u308a\u76f4\u3059\u3064\u3082\u308a\u3060\u3063\u305f\u300d\u306e\u30e1\u30f3\u30bf\u30eb\u3067\u74b0\u5883\u69cb\u7bc9\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5468\u308a\u8a2d\u5b9a\u3082IPv4\u30aa\u30f3\u30ea\u30fc\u306e\u74b0\u5883\u304b\u3089IPv6\u3092\u52a0\u3048\u308b\u3068\u3044\u3046\u306e\u3082\u3001\u898b\u76f4\u3057\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u826f\u3044\u6a5f\u4f1a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u81ea\u6212\u3068\u5099\u5fd8\u9332\u517c\u306d\u305f\u3046\u3048\u3067WebARENA Indigo\u30671\u304b\u3089Wordpress\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308d\u3046\u306a\u8a71\u3067\u3059\u3002\u307e\u305f\u540c\u3058\u3053\u3068\u3084\u3089\u304b\u3057\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306e\u4fdd\u967a\u3067\u3059\uff57<\/p>\n\n\n\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u3082\u691c\u8a0e\u3057\u307e\u3057\u305f\u304cWordpress\u304c\u30e1\u30a4\u30f3\u7528\u9014\u306a\u3089\u3084\u306f\u308aWebARENA Indigo\u304c\u30b3\u30b9\u30d1\u6700\u5f37\u3067\u3059\u3057\u3001\u4f7f\u3044\u52dd\u624b\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<p class=\"has-text-align-center\">\u76ee\u6b21<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#a\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u3068SSH<\/a><\/li>\n\n\n\n<li><a href=\"#b\">\u30b3\u30f3\u30bd\u30fc\u30eb\u30ed\u30b0\u30a4\u30f3\u306e\u6709\u52b9\u5316<\/a><\/li>\n\n\n\n<li><a href=\"#c\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<\/a><\/li>\n\n\n\n<li><a href=\"#d\">Nginx\u306e\u8a2d\u5b9a<\/a><\/li>\n\n\n\n<li><a href=\"#e\">MySQL\u306e\u5c0e\u5165<\/a><\/li>\n\n\n\n<li><a href=\"#f\">WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n\n\n\n<li><a href=\"#g\">SSL\u3078\u306e\u5bfe\u5fdc<\/a><\/li>\n\n\n\n<li><a href=\"#h\">\u307e\u3068\u3081<\/a><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"a\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3068SSH<\/h2>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u524d\u306b\u3001\u521d\u3081\u3066WebARENA Indigo\u3092\u4f7f\u3046\u65b9\u306fSSH\u306e\u8a8d\u8a3c\u306b\u7528\u3044\u308b\u3001\u6697\u53f7\u9375\u3092\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3089\u3078\u3093\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/help.arena.ne.jp\/hc\/ja\/articles\/360049805674-SSH%E9%8D%B5%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B-Linux\">\u516c\u5f0f\u30da\u30fc\u30b8\u306e\u65b9<\/a>\u304c\u8a73\u3057\u3044\u306e\u3067\u305d\u3061\u3089\u3078\u3069\u3046\u305e\u3002\u3053\u3053\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fPrivate_key.txt\u306fSSH\u30ed\u30b0\u30a4\u30f3\u306e\u969b\u306b\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001SSH\u63a5\u7d9a\u306b\u3042\u305f\u3063\u3066\u306f\u6bce\u56dePowerShell\u3067\u3084\u308b\u65b9\u6cd5\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067\u3001Tera Term\u3042\u305f\u308a\u3092\u4f7f\u3046\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<a href=\"https:\/\/help.arena.ne.jp\/hc\/ja\/articles\/7134065589271\">\u53e4\u3044Tera  Term\u3060\u3068SSH\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u306a\u3044\u73fe\u8c61\u304c\u3042\u308b<\/a>\u306e\u3067\u3001\u6700\u65b0\u7248\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306bWebARENA Indigo\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3069\u306e\u30d7\u30e9\u30f3\u304c\u3044\u3044\u304b\u306f\u308f\u304b\u3089\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u65b0\u898f\u3067\u4f5c\u88fd\u3055\u308c\u308b\u65b9\u306f\u57fa\u672c\u7684\u306b\u306f\u3001OS\u306fUbuntu\u306e\u4e00\u756a\u65b0\u3057\u3044\u3082\u306e\u3001\u30d7\u30e9\u30f3\u306f1GB\u306eIPv4\/v6\u306e\u4e21\u65b9\u306b\u5bfe\u5fdc\u3057\u305f\u30d7\u30e9\u30f3\u304c\u5b89\u5b9a\u3067\u3059\u3002WebARENA Indigo\u3067\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u3063\u3066\u826f\u3044\u30d7\u30e9\u30f3\u306b\u4e57\u308a\u63db\u3048\u308b\u3053\u3068\u3067\u3001\u5b9f\u8cea\u7684\u306a\u30b5\u30fc\u30d0\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u521d\u3081\u3066\u306e\u65b9\u3084\u3001PV\u6570\u304c\u5c11\u306a\u3044\u65b9\u306f\u5c0f\u3055\u3044\u30d7\u30e9\u30f3\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u4e0d\u6e80\u304c\u3042\u308b\u3088\u3046\u306a\u3089\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u554f\u984c\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u79c1\u306e\u30b5\u30a4\u30c8\u306fUbuntu\u30671GB\u306eIPv4\/IPv6\u5bfe\u5fdc\u306e\u4e00\u756a\u5c0f\u3055\u3044\u3082\u306e\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u305f\u3089IP\u30a2\u30c9\u30ec\u30b9\u304c\u5272\u308a\u632f\u3089\u308c\u308b\u306e\u3092\u5f85\u3061\u3001\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7ba1\u7406\u306e\u30da\u30fc\u30b8\u306b\u3042\u308bIP\u30a2\u30c9\u30ec\u30b9(IPv4:3\u6841\u4ee5\u4e0b\u306e\u6570\u5b57\u306e\u533a\u5207\u308a\u306b\u306a\u3063\u3066\u3044\u308b\u3084\u3064)\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u3001TeraTerm\u3092\u8d77\u52d5\u3057\u3066\u30db\u30b9\u30c8\u306e\u6b04\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092\u30da\u30fc\u30b9\u30c8\u3057\u307e\u3059\u3002\u63a5\u7d9a\u3059\u308b\u3068\u521d\u56de\u306f\u3053\u306e\u30db\u30b9\u30c8\u3092\u4fe1\u7528\u3057\u307e\u3059\u304b\u7684\u306a\u3082\u306e\u304c\u51fa\u305f\u306f\u305a\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305aOK\u3092\u62bc\u3057\u3066\u9032\u3081\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u5165\u308c\u3066\u3001\u8a8d\u8a3c\u65b9\u5f0f\u306e\u6b04\u306f\u300cRSA\/DSA\/ECDSA\/ED25519\u9375\u3092\u4f7f\u3046\u300d\u3092\u9078\u3073\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u7a7a\u767d\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306f<a href=\"https:\/\/help.arena.ne.jp\/hc\/ja\/articles\/360049807634-SSH%E6%8E%A5%E7%B6%9A%E3%81%A7%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%81%AB%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%99%E3%82%8B-Linux\">\u3053\u306e\u30da\u30fc\u30b8<\/a>\u306b\u8a18\u8f09\u304c\u3042\u308aOS\u3067\u7570\u306a\u308b\u4ed5\u69d8\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6bb5\u968e\u3067\u3001\u74b0\u5883\u3092\u4f5c\u3063\u3066\u3044\u304f\u306e\u3067\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u66f4\u65b0\u3057\u3066\u6700\u65b0\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt update\nsudo apt upgrade<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"b\">\u30b3\u30f3\u30bd\u30fc\u30eb\u30ed\u30b0\u30a4\u30f3\u306e\u6709\u52b9\u5316<\/h2>\n\n\n\n<p>\u79c1\u306e\u3088\u3046\u306bSSH\u3067\u7de0\u3081\u51fa\u3055\u308c\u3066\u624b\u304c\u4ed8\u3051\u3089\u308c\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u60b2\u5287\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u306f\u3001WebARENA Indigo\u4e0a\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u306b\u306froot\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002root\u3058\u3083\u306a\u3044\u65b9\u304c\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u7de0\u3081\u51fa\u3055\u308c\u305f\u308a\u3057\u305f\u3068\u304d\u3084\u969c\u5bb3\u767a\u751f\u6642\u306froot\u306a\u3089\u306a\u3093\u3068\u304b\u306a\u308b\u306e\u3067\u3001\u3053\u3053\u306froot\u3067\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo su -l\npwd\n\/root\u3068\u306a\u3063\u3066\u3044\u308c\u3070OK\npasswd\n\/\/\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b<\/code><\/pre><\/div>\n\n\n\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001WebARENA Indigo\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7ba1\u7406\u3092\u958b\u304d\u3001\u4f7f\u3063\u3066\u3044\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u64cd\u4f5c\u6b04\u306e\u9078\u629e\u30bf\u30d6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3092\u62bc\u3057\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u300croot\u300d\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"738\" src=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-15252v121-1024x738.jpg\" alt=\"\" class=\"wp-image-4349\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-15252v121-1024x738.jpg 1024w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-15252v121-300x216.jpg 300w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-15252v121-768x554.jpg 768w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-15252v121.jpg 1096w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" src=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-152636i-1024x349.jpg\" alt=\"\" class=\"wp-image-4350\" srcset=\"https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-152636i-1024x349.jpg 1024w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-152636i-300x102.jpg 300w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-152636i-768x261.jpg 768w, https:\/\/www.thun-techblog.com\/wp-content\/uploads\/2024\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-04-06-152636i.jpg 1087w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3066\u64cd\u4f5c\u3067\u304d\u308c\u3070\u554f\u984c\u306a\u3044\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u4e00\u5148\u305a\u7de0\u3081\u51fa\u3055\u308c\u308b\u3053\u3068\u306f\u7121\u304f\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001WAN\u5074\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u3066\u3082\u3053\u3053\u304b\u3089\u306a\u3089\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u306e\u304c\u5f37\u5473\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u78ba\u8a8d\u51fa\u6765\u305f\u3089\u3001\u5ff5\u306e\u305f\u3081\u518d\u8d77\u52d5\u3092\u3057\u3066\u3001\u540c\u69d8\u306b\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u30ed\u30b0\u30a4\u30f3\u3068SSH\u63a5\u7d9a\u306b\u554f\u984c\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u554f\u984c\u306a\u3051\u308c\u3070\u3001\u3053\u306e\u6bb5\u968e\u3067IPv6\u3092\u6709\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306a\u624b\u9806\u306f\u516c\u5f0f\u304c\u4e00\u756a\u78ba\u5b9f\u306a\u306e\u3067<a href=\"https:\/\/help.arena.ne.jp\/hc\/ja\/articles\/7129781651607-IPv6%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96%E3%81%99%E3%82%8B-Ubuntu%E7%B3%BB-Debian-12\">\u3053\u3053<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3042\u3068\u306f\u5f8c\u8ff0\u306eNginx\u306e\u8a2d\u5b9a\u3092\u6b63\u3057\u304f\u3059\u308c\u3070IPv4\/IPv6\u4e21\u5bfe\u5fdc\u30b5\u30a4\u30c8\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u4f4e\u9650\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u884c\u304d\u305f\u3044\u306e\u3067\u3001\u6295\u7a3f\u6642\u9593\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3057\u305d\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u306e\u30bf\u30a4\u30e0\u30b3\u30fc\u30c9\u3060\u3051\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>date\n\/\/UTC\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u4f5c\u696d\u3092\u7d9a\u884c\u3001JST\u306a\u3089\u4f55\u3082\u3057\u306a\u304f\u3066OK\nsudo timedatectl set-timezone Asia\/Toky\n\/\/date\u30b3\u30de\u30f3\u30c9\u3067JST\u306b\u306a\u308c\u3070OK<\/code><\/pre><\/div>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<h2 class=\"wp-block-heading\" id=\"c\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u3072\u3068\u307e\u305a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u8aac\u660e\u3067\u306fufw\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3072\u3068\u307e\u305a\u3001SSH\u306e\u307f\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo ufw app status \nAvailable applications:\n  OpenSSH<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3092\u78ba\u8a8d\u3057\u3066\u3001OpenSSH\u304c\u9078\u629e\u80a2\u306b\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw allow &#39;OpenSSH&#39;\nsudo ufw enable\nsudo wfw reload \/\/\u4e00\u5fdc\u518d\u8aad\u307f\u8fbc\u307f<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3057\u3066ufw\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002SSH\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u304c\u3001\u6709\u52b9\u5316\u3057\u3066\u3088\u3044\u304b\u3092\u5c0b\u306d\u3089\u308c\u308b\u306e\u3067Y\u3067\u56de\u7b54\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306eSSH\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u30ad\u30fc\u30d7\u3057\u305f\u72b6\u614b\u3067\u3001\u3082\u3046\u4e00\u3064TeraTerm\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u3044\u3066\u63a5\u7d9a\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u3067\u304d\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067ufw\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw status<\/code><\/pre><\/div>\n\n\n\n<p>OpenSSH\u304b22\u304cALLOW\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"d\">Nginx\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>Apache\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f1\u304b\u3089\u8a2d\u5b9a\u3057\u76f4\u3059\u306e\u3067\u3001\u8efd\u91cf\u3067\u65e9\u3044\u3068\u8a71\u984c\u306eNginx\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt install nginx<\/code><\/pre><\/div>\n\n\n\n<p>ufw\u3067Nginx\u306e\u5206\u3082\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3068\u540c\u3058\u624b\u9806\u3067\u78ba\u8a8d\u3068\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u306e\u3067\u5c11\u3057\u7aef\u6298\u3063\u3066\u7d39\u4ecb\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo ufw app status \/\/Nginx\u306e\u9078\u629e\u80a2\u3092\u78ba\u8a8d\u3059\u308b\nsudo ufw allow &#39;Nginx Full&#39; \/\/Nginx Full\u3092\u8a2d\u5b9a\u3059\u308b\nsudo ufw reload \/\/\u518d\u8aad\u307f\u8fbc\u307f\nsudo ufw status \/\/\u72b6\u614b\u3092\u78ba\u8a8d<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Nginx\u306e\u7d30\u304b\u3044\u8a2d\u5b9a\u306f\u4f55\u304c\u6700\u9069\u304b\u3044\u307e\u3044\u3061\u308f\u304b\u3089\u306a\u3044\u306e\u3067<a href=\"https:\/\/qiita.com\/1104crf14\/items\/f260595da3767ade3a73\">\u3053\u306e\u30b5\u30a4\u30c8<\/a>\u3092\u53c2\u8003\u306b\u3057\u3064\u3064\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u305d\u306e\u3068\u304d\u306b\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano \/etc\/nginx\/nginx.conf<\/code><\/pre><\/div>\n\n\n\n<p>http{}\u306e\u5148\u982d\u306b\u4ee5\u4e0b\u306e2\u884c\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>client_max_body_size 32M;\nkeepalive_timeout 65;<\/code><\/pre><\/div>\n\n\n\n<p>\u4fdd\u5b58\u3057\u305f\u3089Nginx\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001\u69cb\u6587\u30a8\u30e9\u30fc\u306a\u3069\u3067\u6b62\u307e\u3063\u3066\u3044\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo service nginx restart\nsudo service nginx status<\/code><\/pre><\/div>\n\n\n\n<p>\u7dd1\u306e\u25cf\u306e\u6a2a\u306bActive\u3068\u306a\u3063\u3066\u3044\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<h2 class=\"wp-block-heading\" id=\"e\">MySQL\u3068PHP\u306e\u5c0e\u5165<\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u306fWordPress\u3092\u52d5\u304b\u3059\u4e0a\u3067\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5c0e\u5165\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt install mysql-server mysql-client\nsudo systemctl mysql\nsystemctl start mysql<\/code><\/pre><\/div>\n\n\n\n<p>\u7d9a\u3044\u3066PHP\u3092\u5165\u308c\u307e\u3059\u3002\u9069\u5b9c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u3082\u306e\u3092\u5165\u308c\u307e\u3057\u3087\u3046\u3002apt\u3067php\u3092\u635c\u7d22\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>apt search php<\/code><\/pre><\/div>\n\n\n\n<p>\u79c1\u304c\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6bb5\u968e\u3060\u3068\u3001php8.1\u304c\u6700\u65b0\u3063\u307d\u3044\u306e\u3067\u3053\u308c\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002\u3054\u304f\u7a00\u306b\u4e00\u756a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3060\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u305f\u5834\u5408\u306f\u7591\u3063\u3066\u307f\u3066\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306bapt install php\u3068\u3059\u308b\u3068Apache\u3092\u4e00\u7dd2\u306b\u5165\u308c\u3066\u3053\u3088\u3046\u3068\u3059\u308b\u306e\u3067\u3001\u9762\u5012\u3067\u3059\u304c\u500b\u5225\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304f\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u9006\u306bNginx\u3067\u306f\u7121\u3044\u5834\u5408\u306fNginx\u306e\u5de5\u7a0b\u3068\u98db\u3070\u3057\u3066apt install php\u3067\u5341\u5206\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u8a71\u3092\u623b\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u305f\u3089\u95a2\u9023\u3059\u308b\u3082\u306e\u3092\u3068\u308a\u3042\u3048\u305a\u5165\u308c\u307e\u3059\u3002\u4f55\u304b\u8db3\u308a\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308c\u3070\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u5927\u4f53\u3053\u308c\u3067\u5fc5\u8981\u306a\u6a5f\u80fd\u306f\u4f7f\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt install php8.1-fpm php8.1-xml php8.1-curl php8.1-gd php8.1-mbstring php8.1-readline php8.1-bz2 php8.1-zip php8.1-opcache php8.1-mysql php8.1-imagick php8.1-intl<\/code><\/pre><\/div>\n\n\n\n<p>\/etc\/php\/8.1\/fpm\/php.ini\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>upload_max_filesize = 10M\nmax_execution_time=300\npost_max_size = 10M\nmax_input_vars = 4440\u3000\/\/\u5148\u982d\u306e;\u3092\u5916\u3057\u3066\u66f8\u304d\u63db\u3048\u308b\nmemory_limit = 256M<\/code><\/pre><\/div>\n\n\n\n<p>Nginx\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002php-fpm\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5408\u308f\u305b\u3066\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u4e00\u90e8\u5206\u3092\u629c\u7c8b\u3057\u3066\u63b2\u8f09\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5bfe\u5fdc\u3059\u308b\u90e8\u5206\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/nginx\/sites-available\/default<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server{\n\n           server_name www.example.com;\n\nlocation \/ {\n                # 404\u306e\u306f\u846c\u308b\n                try_files $uri $uri\/ \/index.php?$args;\n        }\n\nlocation ~ \\.php$ {\n                include snippets\/fastcgi-php.conf;\n                fastcgi_pass unix:\/var\/run\/php\/php8.1-fpm.sock;\n        }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3067\u3084\u3063\u3068Wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"f\">WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>WordPress\u306e\u3082\u3068\u306b\u306a\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3057\u307e\u3059\u3002\u9069\u5f53\u306b\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4f5c\u696d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd\nwget https:\/\/wordpress.org\/latest.tar.gz\ntar -zxvf latest.tar.gz\nrm latest.tar.gz\nsudo mv wordpress \/var\/www\/html\/\nsudo chown www-data.www-data \/var\/www\/html\/wordpress\/* -R<\/code><\/pre><\/div>\n\n\n\n<p>\u78ba\u8a8d\u3059\u308b\u524d\u306bWordPress\u7528\u306eDB\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306f\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo mysql -u root -p\nCREATE DATABASE wordpress;\nCREATE USER &#39;\u30e6\u30fc\u30b6\u30fc\u540d&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;\u30d1\u30b9\u30ef\u30fc\u30c9&#39;;\nGRANT ALL on wordpress.* TO &#39;\u30e6\u30fc\u30b6\u30fc\u540d&#39;@&#39;localhost&#39;;\nexit<\/code><\/pre><\/div>\n\n\n\n<p>\u3042\u3068\u306fhttp:\/\/[IP\u30a2\u30c9\u30ec\u30b9]\/index.php\u3068\u304b\u9069\u5f53\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u59cb\u307e\u308a\u307e\u3057\u305f\u3002readme.html\u306b\u3088\u308b\u3068wp-admin\/install.php\u3092\u958b\u304f\u306e\u304c\u6b63\u89e3\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u5148\u307b\u3069\u6c7a\u3081\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u901a\u308a\u306b\u6b04\u3092\u57cb\u3081\u3066\u8a2d\u5b9a\u3057\u3066\u6587\u53e5\u3092\u8a00\u308f\u308c\u305a\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u304d\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5ff5\u306e\u305f\u3081\u3001\u30c4\u30fc\u30eb\u21d2\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3088\u308a\u3001\u6b20\u3051\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7121\u3044\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u306f\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u3084URL\u306e\u8a2d\u5b9a\u3067\u3059\u304c\u3001\u3053\u3053\u306f\u4ed6\u306e\u30b5\u30a4\u30c8\u306e\u65b9\u304c\u8a73\u3057\u3044\u3068\u601d\u3046\u306e\u3067\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n<h2 class=\"wp-block-heading\" id=\"g\">SSL\u3078\u306e\u5bfe\u5fdc<\/h2>\n\n\n\n<p>WordPress\u3082\u305d\u3046\u3067\u3059\u304c\u3001\u6628\u4eca\u306eWeb\u30b5\u30fc\u30d0\u30fc\u306fSSL\u306e\u5bfe\u5fdc\u304c\u5fc5\u9808\u3068\u8a00\u3063\u3066\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306fLet&#8217;s Encrypt\u3092\u7528\u3044\u305fSSL\u5316\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u7d42\u308f\u3063\u305fWordpress\u306b\u3066<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt install certbot python3-certbot-nginx<\/code><\/pre><\/div>\n\n\n\n<p>\u3067certbot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo certbot --nginx -d test.example.com<\/code><\/pre><\/div>\n\n\n\n<p>\u9014\u4e2d\u3067\u4f55\u500b\u304b\u9078\u629e\u80a2\u304c\u51fa\u3066\u304f\u308b\u306e\u3048\u3068\u308a\u3042\u3048\u305aYes or No\u306f Yes\u306b\u3057\u3066\u304a\u3044\u3066\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3084\u30c9\u30e1\u30a4\u30f3\u3092\u5165\u308c\u308b\u90e8\u5206\u306f\u6307\u793a\u901a\u308a\u306b\u5165\u308c\u3066\u3001Error\u304c\u51fa\u3066\u3044\u306a\u3051\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u7167\u660e\u66f8\u306f3\u304b\u6708\u3067\u671f\u9650\u5207\u308c\u306b\u306a\u308b\u306e\u3067\u81ea\u52d5\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u305a\u30b3\u30de\u30f3\u30c9\u3067\u66f4\u65b0\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo certbot renew --dry-run<\/code><\/pre><\/div>\n\n\n\n<p>\u30a8\u30e9\u30fc\u304c\u51fa\u305assuccess\u3068\u6700\u5f8c\u306e\u65b9\u306b\u51fa\u3066\u3044\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002\u3053\u308c\u3067\u66f4\u65b0\u304c\u3067\u304d\u308b\u72b6\u614b\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306bcron\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>sudo crontab -u root -e<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>0 3 1 * * certbot renew #\u6bce\u6708\u521d\u65e5\u306e\u671d3\u6642\u306b\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\n1 4 * * * reboot  #\u6bce\u65e54\u66421\u5206\u306b\u518d\u8d77\u52d5<\/code><\/pre><\/div>\n\n\n\n<p>\u52d5\u304b\u3057\u3063\u3071\u306a\u3057\u3082\u8003\u3048\u3082\u306e\u306a\u306e\u3067\u3001\u3072\u3068\u307e\u305a\u6bce\u65e5\u518d\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001DDNS\u306e\u66f4\u65b0\u3082\u4f55\u5206\u306b1\u56de\u3068\u3044\u3046\u5f62\u3067cron\u306b\u767b\u9332\u3057\u3066\u304a\u3051\u3070\u5b89\u5b9a\u3057\u3066\u66f4\u65b0\u3067\u304d\u307e\u3059\u3088\u3002\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306f<a href=\"https:\/\/www.thun-techblog.com\/index.php\/blog\/onamae-ddns-linux\/\" data-type=\"post\" data-id=\"100\">\u79c1\u304c\u4f5c\u3063\u305f\u30c4\u30fc\u30eb<\/a>\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u3057\u3066\u3044\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u88dc\u8db3\u3067\u3059\u304c\u3001certbot\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u70b9\u3067\u3001http\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001https\u306e\u5f62\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u6bce\u56de\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u306e\u3082\u6c17\u306b\u306a\u308b\u306e\u3067\u3001WordPress\u4e0a\u304b\u3089\u306fhttps:\/\/~\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u307e\u305f\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001www\u306e\u6709\u7121\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3082\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-thun wp-block-embed-thun\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"kco1BWLs0P\"><a href=\"https:\/\/www.thun-techblog.com\/index.php\/blog\/redirect-https-www-nginx\/\">NGINX\u3067\u300cwww\u300d\u306e\u6709\u7121\u3068http\u306ehttps\u306e\u6b63\u898f\u5316\u3092\u3059\u308b\u8a71<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;NGINX\u3067\u300cwww\u300d\u306e\u6709\u7121\u3068http\u306ehttps\u306e\u6b63\u898f\u5316\u3092\u3059\u308b\u8a71&#8221; &#8212; THUN\u306e\u904a\u622f\u5ba4\" src=\"https:\/\/www.thun-techblog.com\/index.php\/blog\/redirect-https-www-nginx\/embed\/#?secret=Qy6MdY32u0#?secret=kco1BWLs0P\" data-secret=\"kco1BWLs0P\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>WebARENA Indigo\u30671\u304b\u3089\u8a2d\u5b9a\u3057\u3001Nginx\u3092\u7528\u3044\u3066WordPress\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u7f6e\u3057\u307e\u3057\u305f\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001SSH\u304b\u3089\u306e\u7de0\u3081\u51fa\u3057\u5bfe\u7b56\u3092\u8b1b\u3058\u3066\u4eca\u5f8c\u306e\u540c\u69d8\u306e\u30c8\u30e9\u30d6\u30eb\u306e\u518d\u767a\u9632\u6b62\u306b\u53d6\u308a\u7d44\u307f\u3064\u3064\u3001Nginx\u306b\u3088\u308b\u9ad8\u901f\u5316\u3001IPv6\u3078\u306e\u5bfe\u5fdc\u3068\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u5ea6\u306f\u901a\u4fe1\u5468\u308a\u306e\u8a2d\u5b9a\u3092\u3044\u3058\u308b\u3068\u304d\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u3084\u308d\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u3073\u3063\u304f\u308a\u3059\u308b\u304f\u3089\u3044\u5b89\u4fa1\u306a\u306e\u306b\u306a\u305c\u5229\u7528\u3057\u306a\u304b\u3063\u305f\u306e\u304b\u3068\u5f8c\u6094\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u5f8c\u306f\u7de0\u3081\u51fa\u3057\u3055\u308c\u308b\u3053\u3068\u3082\u306a\u3044\u306f\u305a\u306a\u306e\u3067\u304a\u4e16\u8a71\u306b\u306a\u308b\u3053\u3068\u306f\u7121\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3084\u306f\u308a\u4fdd\u967a\u3092\u304b\u3051\u3066\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4f5c\u308b\u3067\u3057\u3087\u3046\u3002\u3042\u3063\u3055\u308a\u3068\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u3084\u3063\u3066\u3057\u307e\u3063\u305f\u611f\u304c\u5f37\u3044\u306e\u3067\u7d50\u69cb\u53cd\u7701\u306f\u3057\u3066\u3044\u307e\u3059\u306d\u2026\u7686\u69d8\u306f\u901a\u4fe1\u5468\u308a\u3092\u3044\u3058\u308b\u3068\u304d\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u308a\u307e\u3057\u3087\u3046\u306d\u3002<\/p>\n\n\n\n<p>\u7dcf\u5408\u7684\u306b\u306f\u305d\u3053\u307e\u3067\u6642\u9593\u3082\u304b\u304b\u3089\u306a\u304b\u3063\u305f\u3067\u3059\u3057\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3082\u3067\u304d\u305f\u3057\u3067\u6e80\u8db3\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3068\u306a\u308a\u307e\u3059\u3002\u304a\u8aad\u307f\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n<style>\n.test { width: 320px; height: 100px; }\n@media(min-width: 500px) { .test { width: 468px; height: 60px; } }\n@media(min-width: 800px) { .test { width: 728px; height: 90px; } }\n<\/style>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4541970754535576\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- \u3044\u3064\u3082\u306e\u6b63\u65b9\u5f62\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30eb\u5e83\u544a -->\n<ins class=\"adsbygoogle test\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-4541970754535576\"\n     data-ad-slot=\"5487611343\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30b5\u30a4\u30c8\u306f\u6700\u521d\u306e\u6570\u5e74\u306f\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u305d\u306e\u5f8c\u6570\u5e74\u306fWebARENA Indigo\u3092\u7528\u3044\u3066\u904b\u55b6\u3092\u7d9a\u3051\u3066\u304d\u307e\u3057\u305f\u3002 \u3068\u306f\u3044\u3048\u30b5\u30fc\u30d0\u30fc\u30de\u30b7\u30f3\u3082\u53e4\u3044\u306e\u3067\u8272\u3005\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u306e\u3068\u3001\u6700\u8fd1\u5c11\u3057\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u6a5f\u80fd\u3067&hellip; <a class=\"more-link\" href=\"https:\/\/www.thun-techblog.com\/index.php\/blog\/webarena-indigo-wordpress-srv-v2\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">WebARENA Indigo\u3067WordPress\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-4346","post","type-post","status-publish","format-standard","hentry","category-linux","entry"],"_links":{"self":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/4346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=4346"}],"version-history":[{"count":10,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/4346\/revisions"}],"predecessor-version":[{"id":4638,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/posts\/4346\/revisions\/4638"}],"wp:attachment":[{"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=4346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=4346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thun-techblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=4346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}