{"id":11029,"date":"2015-10-18T13:28:32","date_gmt":"2015-10-18T04:28:32","guid":{"rendered":"http:\/\/a-tak.com\/blog\/?p=11029"},"modified":"2020-07-13T13:40:29","modified_gmt":"2020-07-13T04:40:29","slug":"move-to-google-compute-engine-part2","status":"publish","type":"post","link":"https:\/\/a-tak.com\/blog\/2015\/10\/move-to-google-compute-engine-part2\/","title":{"rendered":"\u304a\u540d\u524d\uff0e\uff43\uff4f\uff4d VPS\u304b\u3089Google Compute Engine\u306b\u30b5\u30fc\u30d0\u30fc\u79fb\u884c\u3057\u305f \u305d\u306e2"},"content":{"rendered":"<div id=\"advads-2261075631\" class=\"advads-before-content-placement advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><figure><a href=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/gce-diagram1.jpg?ssl=1\" title=\"\u3053\u3093\u306a\u69cb\u6210\u306b\u3057\u3066\u307f\u305f\u3088\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"shadow-img\" src=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/gce-diagram1.jpg?w=700&#038;ssl=1\" alt=\"\u3053\u3093\u306a\u69cb\u6210\u306b\u3057\u3066\u307f\u305f\u3088\" title=\"gce-diagram.jpg\"   \/><\/a>\u2028<\/figure>\n<p>\u3000\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001Google Compute Engine\u4e0a\u306b\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3067\u62e1\u5f35\u3059\u308bWordPress\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304f\u65b9\u6cd5\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u5b9f\u969b\u306bDB\u3068Web\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>GCE\u3092\u4f7f\u3046\u6e96\u5099<\/h2>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u2193<\/p>\n<div class=\"sharehtml\"><a href=\"https:\/\/a-tak.com\/blog\/2015\/10\/move-to-google-compute-engine-2\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?https:\/\/a-tak.com\/blog\/2015\/10\/18\/move-to-google-compute-engine-2\/\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"https:\/\/a-tak.com\/blog\/2015\/10\/move-to-google-compute-engine-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u304a\u540d\u524d\uff0e\uff43\uff4f\uff4d VPS\u304b\u3089Google Compute Engine\u306b\u30b5\u30fc\u30d0\u30fc\u79fb\u884c\u3057\u305f \u305d\u306e1 | A-tak-dot-com<\/a><a href=\"https:\/\/b.hatena.ne.jp\/entry\/s\/a-tak.com\/blog\/2015\/10\/18\/move-to-google-compute-engine-2\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" decoding=\"async\" border=\"0\" src=\"https:\/\/i0.wp.com\/b.st-hatena.com\/images\/users\/gif\/normal\/00005.gif?ssl=1\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<p>\u3000\u307e\u305a\u306f\u3001Google\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"sharehtml\"><a href=\"http:\/\/heartbeats.jp\/hbblog\/2014\/06\/google-cloud-platform.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/heartbeats.jp\/hbblog\/2014\/06\/google-cloud-platform.html\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/heartbeats.jp\/hbblog\/2014\/06\/google-cloud-platform.html\" target=\"_blank\" rel=\"noopener noreferrer\">Google Cloud Platform\u3092\u306f\u3058\u3081\u3088\u3046\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb #gcpja &#8211; \u30a4\u30f3\u30d5\u30e9\u30a8\u30f3\u30b8\u30cb\u30a2way &#8211; Powered by HEARTBEATS<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/heartbeats.jp\/hbblog\/2014\/06\/google-cloud-platform.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/heartbeats.jp\/hbblog\/2014\/06\/google-cloud-platform.html\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<p>\u3000\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u521d\u671f\u767b\u9332\u3057\u3001Project\u3092\u4f5c\u6210\u3059\u308b\u3068Web\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3067\u304d\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306bSSH\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u306fGoogle Cloud SDK\u304c\u5fc5\u8981\u3067\u3059\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u79c1\u306fMac\u3067\u3084\u3063\u3066\u307e\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u30b3\u30d4\u30da\u3067\u3044\u3051\u308b\u30ec\u30d9\u30eb\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cloud.google.com\/sdk\/\">https:\/\/cloud.google.com\/sdk\/<\/a><\/p>\n<p>\u3000<code>gcloud init<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u30d6\u30e9\u30a6\u30b6\u304c\u7acb\u3061\u4e0a\u304c\u3063\u3066\u3001Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u88cf\u3067\u30d6\u30e9\u30a6\u30b6\u7acb\u3061\u4e0a\u304c\u3063\u3066\u305f\u308a\u3059\u308b\u304b\u3089\u63a2\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3000Mac\u306e\u5834\u5408\u3001<\/p>\n<pre><code>Where would you like to clone [default] repository to <\/code><\/pre>\n<p>\u306e\u3068\u3053\u308d\u3067Enter\u3067\u5148\u306b\u9032\u3081\u308b\u3068\u3001<\/p>\n<pre><code>Agreeing to the Xcode\/iOS license requires admin privileges, please re-run as root via sudo.<\/code><\/pre>\n<p>\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Google Cloud SDK\u304cXcode\u306e\u4e00\u90e8\u306e\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081Xcode\u3092\u4e00\u5ea6\u8d77\u52d5\u3057\u3066\u30e9\u30a4\u30bb\u30f3\u30b9\u306bOK\u3057\u305f\u3042\u3068\u306b <code>gcloud init<\/code> \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u7d50\u679c\u304c\u51fa\u3066\u304d\u3066\u3001<\/p>\n<pre><code>[compute]\nregion = us-central1\nzone = us-central1-f<\/code><\/pre>\n<p>\u30ea\u30fc\u30b8\u30e7\u30f3\u3082\u30be\u30fc\u30f3\u3082US\u306b\u306a\u3063\u3066\u307e\u3059\u304c\u3001\u5f8c\u3067Web\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u3068\u3053\u308d\u3067\u5909\u66f4\u304c\u3067\u304d\u308b\u306e\u3067\u6c17\u306b\u3057\u306a\u3044\u3067\u3088\u3044\u3067\u3059\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210<\/h2>\n<p>\u3000Google Devlopers Console\u306bGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u5de6\u306e\u30c4\u30ea\u30fc\u306b\u300c\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u306bGoogle Compute Engine\u306b\u95a2\u3059\u308b\u6a5f\u80fd\u304c\u8a70\u3081\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3000\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001&#8221;\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8&#8221; -> &#8220;Compute Engine&#8221; -> &#8220;VM \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9&#8221;\u306e\u753b\u9762\u306e\u4e0a\u306b\u3042\u308b&#8221;\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9&#8221;\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/Compute_Engine-01.jpg?ssl=1\" title=\"\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u753b\u9762\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"shadow-img\" src=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/Compute_Engine-01.jpg?w=525&#038;ssl=1\" alt=\"\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u753b\u9762\" title=\"Compute_Engine 01.jpg\"   \/><\/a><figcaption>\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u753b\u9762<\/figcaption><\/figure>\n<p>\u3000\u305d\u3046\u3059\u308b\u3068\u4f5c\u6210\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30da\u30c3\u30af\u3092\u6307\u5b9a\u3059\u308b\u753b\u9762\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u307e\u305a\u306fDB\u517cNFS\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308a\u307e\u3059\u306e\u3067\u3001\u540d\u524d\u306e\u3068\u3053\u308d\u306b\u306f\u305f\u3068\u3048\u3070&#8221;db&#8221;\u3068\u3057\u307e\u3059\u3002\u30be\u30fc\u30f3\u306f\u65e5\u672c\u306b\u8fd1\u3044&#8221;asia&#8221;\u304b\u3089\u59cb\u307e\u308b\u30be\u30fc\u30f3\u3092\u9078\u3093\u3067\u304a\u304d\u307e\u3059\u3002\u79c1\u306f\u3068\u308a\u3042\u3048\u305a&#8221;<code>asia-east1-a<\/code>&#8220;\u3092\u9078\u3073\u307e\u3057\u305f\u3002PING\u3067\u53cd\u5fdc\u304c\u65e9\u305d\u3046\u306a\u306e\u3092\u9078\u3076\u306e\u304c\u672c\u5f53\u306f\u3044\u3044\u306e\u304b\u3082\u3002<\/p>\n<p>\u3000\u30de\u30b7\u30f3\u30bf\u30a4\u30d7\u306f&#8221;<code>f1-micro<\/code>&#8220;\u306b\u3057\u307e\u3057\u305f\u3002\u30e1\u30e2\u30ea\u304c0.6GB\u3068\u5c11\u306a\u304f\u3066\u3001\u306f\u3063\u304d\u308a\u8a00\u3063\u3066\u7d50\u69cb\u8ca7\u5f31\u306a\u30b9\u30da\u30c3\u30af\u306a\u306e\u3067\u3059\u304c\u3001\u307e\u305a\u306f\u6700\u5c0f\u69cb\u6210\u3068\u3044\u3046\u3053\u3068\u3067\u3053\u308c\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u305f\u3060\u3001SELinux\u306e\u30dd\u30ea\u30b7\u30fc\u53cd\u6620\u304c\u30e1\u30e2\u30ea\u4e0d\u8db3(<code>setsebool -P<\/code>\u3067Killed\u3063\u3066\u7d42\u4e86\u3059\u308b)\u3067\u5931\u6557\u3059\u308b\u3050\u3089\u3044\u30e1\u30e2\u30ea\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u4e00\u500b\u4e0a\u306e<code>g1-small<\/code>\u3050\u3089\u3044\u9078\u3093\u3067\u304a\u3044\u305f\u65b9\u304c\u82e6\u52b4\u306f\u5c11\u306a\u304f\u30bb\u30ad\u30e5\u30a2\u306a\u74b0\u5883\u3092\u4f5c\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u56de\u3001\u3068\u308a\u3042\u3048\u305aSELinux\u306f\u3042\u304d\u3089\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306fCentOS 7.1.1503\u3092\u9078\u3093\u3067\u3001\u5bb9\u91cf\u306f20GB\u306b\u3057\u307e\u3057\u305f(\u5199\u771f\u3067\u306f30GB\u306b\u306a\u3063\u3066\u307e\u3059\u304c)\u3002\u5bb9\u91cf\u306fOS\u9078\u629e\u306e\u4e0b\u306e\u65b9\u306b\u5165\u529b\u6b04\u304c\u3042\u308a\u307e\u3059\u3002DB\u3068\u753b\u50cf\u306a\u3069\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5165\u308c\u308b\u306e\u3067\u5c11\u3057\u5927\u304d\u3081\u306b\u3057\u307e\u3057\u305f\u3002a-tak.com\u306f\u65e2\u306b\u753b\u50cf\u3060\u3051\u3067\u5727\u7e2e\u3057\u30663GB\u3050\u3089\u3044\u3042\u308b\u306e\u3067\u3002\u305d\u308c\u3067\u3082OS\u542b\u3081\u30664.5GB\u3050\u3089\u3044\u306a\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u5c11\u306a\u3081\u306e\u30b5\u30a4\u30ba\u3067\u3082\u826f\u304b\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3000\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306fXFS\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306a\u306e\u3067\u3001\u30b5\u30a4\u30ba\u306f\u5f8c\u3067\u62e1\u5f35\u53ef\u80fd\u3067\u3059\u304c\u3001\u9006\u306b\u7e2e\u5c0f\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3042\u307e\u308a\u6b32\u5f35\u308a\u904e\u304e\u3066\u7121\u99c4\u306a\u8ab2\u91d1\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u3046\u307e\u304f\u898b\u6975\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3000\u3042\u3068\u306f&#8221;\u4f5c\u6210&#8221;\u3092\u62bc\u3059\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u304c\u59cb\u307e\u308a\u307e\u3059\u3002\u3060\u3044\u305f\u304420-30\u79d2\u3050\u3089\u3044\u3067\u3067\u304d\u3042\u304c\u308b\u307f\u305f\u3044\u3067\u3059\u3002OS\u304c\u8d77\u52d5\u3057\u3066\u308b\u304b\u3069\u3046\u304b\u306f&#8221;VM \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9&#8221;\u306b\u306a\u3089\u3093\u3067\u3044\u308bVM\u306e\u540d\u524d\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u5148\u306e\u4e00\u756a\u4e0b\u306b&#8221;\u30b7\u30ea\u30a2\u30eb \u30b3\u30f3\u30bd\u30fc\u30eb\u51fa\u529b&#8221;\u3068\u3044\u3046\u30ea\u30f3\u30af\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u307f\u308b\u3068\u30d6\u30fc\u30c8\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<\/p>\n<pre><code>CentOS Linux 7 (Core)\nKernel 3.10.0-229.14.1.el7.x86_64 on an x86_64\n<\/code><\/pre>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u306e\u884c\u304c\u51fa\u3066\u3044\u308c\u3070\u3001\u3082\u3046\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>DB\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9<\/h2>\n<p>\u3000\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u3067\u304d\u305f\u306e\u3067DB\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000Mac\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u306egcloud\u30b3\u30de\u30f3\u30c9\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<pre><code>gcloud compute --project \"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\" ssh --zone \"\u30be\u30fc\u30f3\u540d\" \"\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\"<\/code><\/pre>\n<p>\u305f\u3068\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>gcloud compute --project \"my-project99\" ssh --zone \"asia-east1-a\" \"db\"<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u304c\u3001Web\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u753b\u9762\u4e0a\u306b\u3042\u308b&#8221;SSH&#8221;\u306e\u3068\u3053\u308d\u304b\u3089&#8221;gcloud \u30b3\u30de\u30f3\u30c9\u3092\u8868\u793a&#8221;\u3092\u9078\u3076\u3068\u3001\u305d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u6700\u521d\u306f\u3053\u308c\u3067\u78ba\u8a8d\u304c\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/Compute_Engine_02.jpg?ssl=1\" title=\"\u89aa\u5207\u306d\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"shadow-img\" src=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/Compute_Engine_02.jpg?w=700&#038;ssl=1\" alt=\"\u89aa\u5207\u306d\" title=\"Compute_Engine_02.jpg\"   \/><\/a>\u2028<figcaption>\u89aa\u5207\u306d<\/figcaption><\/figure>\n<p>\u3000gcloud\u30b3\u30de\u30f3\u30c9\u4f7f\u3046\u3053\u3068\u3067\u3001\u666e\u901a\u306bLinux\u30b5\u30fc\u30d0\u30fc\u306bSSH\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3088\u3046\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u30a2\u30d7\u30ea\u3092\u3069\u3093\u3069\u3093\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u9762\u5012\u306a\u306e\u3067sudo\u3067su\u306b\u306a\u3063\u3066\u3084\u3063\u3061\u3083\u3044\u307e\u3057\u305f\u3002<\/p>\n<h3>\u6642\u9593\u3092\u65e5\u672c\u6642\u9593\u306b<\/h3>\n<pre><code>sudo su -\ncp \/usr\/share\/zoneinfo\/Japan \/etc\/localtime<\/code><\/pre>\n<p>\u3053\u308c\u3084\u3063\u3068\u304b\u306a\u3044\u3068\u30ed\u30b0\u306e\u6642\u9593\u304c\u305a\u308c\u3066\u8abf\u67fb\u3057\u3065\u3089\u3044\u3002<\/p>\n<h3>\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a<\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a\u304c\u306a\u3044\u306e\u3067\u30e1\u30e2\u30ea\u4e0d\u8db3\u306b\u306a\u308b\u3068\u6b62\u307e\u308b\u3002<\/p>\n<pre><code>dd if=\/dev\/zero of=\/swapfile bs=1M count=1024\nmkswap \/swapfile\nswapon \/swapfile\n<\/code><\/pre>\n<h3>\u8d77\u52d5\u6642\u306b\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u3067\u4f7f\u3048\u308b\u72b6\u614b\u306b\u3059\u308b<\/h3>\n<pre><code>vi \/etc\/fstab<\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u8ffd\u52a0<\/p>\n<pre><code>\/swapfile none swap sw 0 0\n<\/code><\/pre>\n<h3>mariddb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre><code>yum -y install mariadb\nyum -y install mariadb-server\n<\/code><\/pre>\n<h3>mariadb\u8a2d\u5b9a<\/h3>\n<pre><code>vi \/etc\/my.cnf<\/code><\/pre>\n<p>mysql\u30bb\u30af\u30b7\u30e7\u30f3\u306b<br \/>\n<code>character-set-server=utf8<\/code><br \/>\n\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3002<\/p>\n<h3>mariadb\u8d77\u52d5<\/h3>\n<pre><code>systemctl enable mariadb.service\nsystemctl start mariadb.service\n<\/code><\/pre>\n<p>\u3053\u308c\u3067mariadb(MySQL)\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002CentOS7\u306b\u306a\u3063\u3066\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5\u306e\u30b3\u30de\u30f3\u30c9\u5165\u529b\u591a\u304f\u306a\u3063\u3066\u9762\u5012\u306b\u306a\u3063\u305f\u2026\u3002<\/p>\n<h2>NFS\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9<\/h2>\n<p>\u3000WordPress\u3068\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u3082\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u304a\u3044\u3066\u3001Web\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53c2\u7167\u3055\u305b\u305f\u3044\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc(NFS)\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<h3>NFS\u30b5\u30fc\u30d0\u30fc\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u524d\u306e\u7ae0\u3067sudo su -\u3067su\u306b\u306a\u3063\u3066\u3044\u308b\u524d\u63d0\u306d\u3002<\/p>\n<pre><code>yum -y install nfs-utils\n<\/code><\/pre>\n<h3>\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210<\/h3>\n<p><code>\/var\/contents<\/code>\u3092\u30d5\u30a1\u30a4\u30eb\u7f6e\u304d\u5834\u306b\u3059\u308b\u5834\u5408\u3002<\/p>\n<pre><code>mkdir -p \/var\/contents\/hoge.com\/html\nchmod 777 \/var\/contents\/\n<\/code><\/pre>\n<p>\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306f\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308b\u3051\u3069\u3001\u7d5e\u308c\u308b\u306a\u3089\u7d5e\u3063\u305f\u304c\u3044\u3044\u3002<\/p>\n<h3>\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u8a2d\u5b9a<\/h3>\n<pre><code>vi \/etc\/exports<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3002<\/p>\n<pre><code>\/var\/contents instance-group-web*.c.my-project99.internal(rw)\n<\/code><\/pre>\n<p>\u5404\u9805\u76ee\u306f\u2193\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre><code>\u5171\u6709\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3059\u308b\u30db\u30b9\u30c8(\u6a29\u9650)\n<\/code><\/pre>\n<p>\u300c\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3059\u308b\u30db\u30b9\u30c8\u300d\u306fWeb\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<p>GCE\u3067\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u7d61\u3081\u3066GCE\u5185\u90e8\u3067\u4f7f\u3048\u308b\u30db\u30b9\u30c8\u540d\u3092\u81ea\u52d5\u3067\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>&#8220;<code>instance-group-web<em>.c.my-project99.internal<\/code>&#8220;\u306e\u6700\u521d\u306e&#8221;<code>instance-group-web<\/code>&#8220;\u304c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u306b\u306a\u308a\u307e\u3059\u3002\u540d\u524d\u306e\u6700\u5f8c\u306b&#8221;<code> *<\/em> <\/code>&#8220;\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001&#8221;instance-group-web&#8221;\u306e\u540d\u524d\u3067\u59cb\u307e\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9(\u30db\u30b9\u30c8)\u304b\u3089\u306e\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u3042\u3068\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u306f&#8221;instance-group-web&#8221;\u304b\u3089\u59cb\u307e\u308b\u540d\u524d\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u3066\u308b\u306e\u306f\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3067\u52dd\u624b\u306b\u30b5\u30fc\u30d0\u30fc\u304c\u30c9\u30ab\u30c9\u30ab\u5897\u3048\u308b\u304b\u3089\u3068\u3044\u3046\u7406\u7531\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30db\u30b9\u30c8\u540d\u306e\u78ba\u8a8d\u306fnslookup\u3067\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre><code>yum -y install bind-utils<\/code><\/pre>\n<p>\u3067nslookup\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001<\/p>\n<pre><code>nslookup \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d<\/code><\/pre>\n<p>\u3067<\/p>\n<pre><code>Non-authoritative answer:\nName:   \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d.c.my-project99.internal\n<\/code><\/pre>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>NFS\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u6307\u5b9a<\/h3>\n<pre><code>vi \/etc\/idmapd.conf<\/code><\/pre>\n<p>Domain\u306e\u3068\u3053\u308d\u3092\u4ee5\u4e0b\u306e\u8981\u9818\u3067\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code>Domain = \u30db\u30b9\u30c8\u540d.c.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d.internal<\/code><\/pre>\n<h3>NFS\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5<\/h3>\n<pre><code>systemctl start rpcbind\nsystemctl start nfs-server\nsystemctl start nfs-lock\nsystemctl start nfs-idmap\nsystemctl enable nfs-server\n<\/code><\/pre>\n<p>\u3053\u308c\u3067NFS\u30b5\u30fc\u30d0\u30fc\u306e\u6e96\u5099\u3082\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000<\/p>\n<h3>\u53c2\u8003<\/h3>\n<div class=\"sharehtml\"><a href=\"http:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=nfs\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=nfs\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=nfs\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7 : NFS\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a \uff1a Server World<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=nfs\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=nfs\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<div class=\"sharehtml\"><a href=\"http:\/\/qiita.com\/tanuki-project\/items\/5c706b2eab6e7eed71fd\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/qiita.com\/tanuki-project\/items\/5c706b2eab6e7eed71fd\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/qiita.com\/tanuki-project\/items\/5c706b2eab6e7eed71fd\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7\u3067NFS\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3066\u307f\u305f &#8211; Qiita<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/qiita.com\/tanuki-project\/items\/5c706b2eab6e7eed71fd\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/qiita.com\/tanuki-project\/items\/5c706b2eab6e7eed71fd\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<p><a href=\"https:\/\/users.miraclelinux.com\/technet\/document\/linux\/training\/2_7_4.html#training2_7_4\">https:\/\/users.miraclelinux.com\/technet\/document\/linux\/training\/2<em>7<\/em>4.html#training2<em>7<\/em>4<\/a><\/p>\n<div class=\"sharehtml\"><a href=\"http:\/\/linuxjm.osdn.jp\/html\/nfs-utils\/man5\/exports.5.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/linuxjm.osdn.jp\/html\/nfs-utils\/man5\/exports.5.html\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/linuxjm.osdn.jp\/html\/nfs-utils\/man5\/exports.5.html\" target=\"_blank\" rel=\"noopener noreferrer\">Man page of EXPORTS<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/linuxjm.osdn.jp\/html\/nfs-utils\/man5\/exports.5.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/linuxjm.osdn.jp\/html\/nfs-utils\/man5\/exports.5.html\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<h2>Web\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9<\/h2>\n<p>\u3000LB\u3068\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3067\u5897\u6e1b\u3059\u308bWeb\u30b5\u30fc\u30d0\u30fc\u304c\u76ee\u6a19\u3067\u3059\u304c\u3001\u307e\u305a\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u4e00\u53f0\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<h3>Web\u7528\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210<\/h3>\n<p>\u3000Web\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3084\u308a\u65b9\u306f\u524d\u9805\u53c2\u7167\u3067\u3002<\/p>\n<p>\u3000\u540d\u524d\u306f\u3055\u304d\u307b\u3069NFS\u30b5\u30fc\u30d0\u30fc\u3067\u8a31\u53ef\u3057\u305f\u540d\u524d\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001&#8221;<code>instance-group-web<\/code>&#8220;\u3067\u59cb\u307e\u308b\u540d\u524d\u306b\u3059\u308b\u3002\u305f\u3068\u3048\u3070&#8221;<code>instance-group-web99<\/code>&#8220;\u3068\u304b\u3002\u30de\u30b7\u30f3\u30bf\u30a4\u30d7\u306f f1-micro\u3001OS\u306fDB\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u304f CentOS 7.1 \u3001\u30c7\u30a3\u30b9\u30af\u306f\u305d\u3093\u306a\u306b\u3044\u3089\u306a\u3044\u306e\u3067 10GB \u3067\u69cb\u7bc9(\u3082\u3063\u3068\u5c11\u306a\u304f\u3066\u3082\u3044\u3044\u304b\u3082)\u3002<\/p>\n<p>\u3000\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u306ef1-micro\u3060\u3068SELinux\u306e\u8a2d\u5b9a\u304c\u307e\u3068\u3082\u306b\u7d42\u4e86\u3057\u306a\u3044\u306e\u3067\u3001\u3061\u3083\u3093\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u78ba\u4fdd\u3057\u305f\u3044\u4eba\u306f\u3001\u3082\u3046\u4e00\u3064\u4e0a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4eca\u56de\u306fSELinux\u3092\u7121\u52b9\u306b\u3057\u3066\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u3001\u4eca\u56deWeb\u30b5\u30fc\u30d0\u30fc\u306a\u306e\u3067\u3001<strong>&#8220;HTTP \u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b&#8221;\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044<\/strong>\u3002<\/p>\n<h3>\u6642\u9593\u3092\u65e5\u672c\u6642\u9593\u306b<\/h3>\n<p>\u3000DB\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u8a2d\u5b9a\u3067\u3059\u306d\u3002<\/p>\n<pre><code>sudo su -\ncp \/usr\/share\/zoneinfo\/Japan \/etc\/localtime<\/code><\/pre>\n<h3>\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a<\/h3>\n<pre><code>dd if=\/dev\/zero of=\/swapfile bs=1M count=1024\nmkswap \/swapfile\nswapon \/swapfile\n<\/code><\/pre>\n<h3>\u8d77\u52d5\u6642\u306b\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u3067\u4f7f\u3048\u308b\u72b6\u614b\u306b\u3059\u308b<\/h3>\n<pre><code>vi \/etc\/fstab<\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u8ffd\u52a0<\/p>\n<pre><code>\/swapfile none swap sw 0 0\n<\/code><\/pre>\n<h3>DB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068PHP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u3000\u3053\u3053\u304b\u3089Web\u30b5\u30fc\u30d0\u30fc\u7279\u6709\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000MariaDB\u3078\u306e\u63a5\u7d9a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068PHP\u3068Nginx\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u308bPHP-FPM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>[2015-11-01\u8ffd\u8a18]<br \/>\nphp-gd\u3092\u5165\u308c\u306a\u3044\u3068\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\u306e\u3067\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/p>\n<pre><code>sudo su -\nyum -y install mariadb\nyum -y install php\nyum -y install php-gd\nyum -y install php-mysql\nyum -y install php-mbstring\nyum -y install php-fpm<\/code><\/pre>\n<h3>php.ini\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u306e\u6307\u5b9a<\/h3>\n<p>[2015-11-07\u8ffd\u8a18]<br \/>\n\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u5927\u304d\u304f\u3057\u306a\u3044\u3068WordPress\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u52d5\u304d\u306b\u5236\u7d04\u304c\u3042\u3063\u305f\u308a\u3057\u305f\u306e\u3067\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code>vi \/etc\/php.ini<\/code><\/pre>\n<pre><code>upload_max_filesize = 50M\n<\/code><\/pre>\n<h3>SELinux\u7121\u52b9\u5316<\/h3>\n<p>\u30e1\u30e2\u30ea\u306e\u95a2\u4fc2\u3067\u30dd\u30ea\u30b7\u30fc\u53cd\u6620\u3067\u304d\u305aWordPress\u3092\u52d5\u304b\u305b\u306a\u3044\u306e\u3067\u3001SELinux\u3092\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><code>setenforce permissive<\/code> \u30b3\u30de\u30f3\u30c9\u3067SELinux\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u518d\u8d77\u52d5\u6642\u306b\u3082\u7121\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>vi \/etc\/selinux\/config<\/code><\/pre>\n<p><code>SELINUX=enforce<\/code> \u3068\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3092<br \/>\n<code>SELINUX=permissive<\/code> \u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u3061\u304c\u3063\u3066\u3001<code>SELINUXTYPE<\/code> \u306e\u65b9\u3092\u66f8\u304d\u63db\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3063\u3066OS\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u306e\u3067\u3002\u4e00\u56de\u3084\u3063\u3066\u3057\u307e\u3063\u3066\u8d77\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f(\u7b11)\u3002<\/p>\n<h3>php-fpm\u8a2d\u5b9a<\/h3>\n<pre><code>vi \/etc\/php-fpm.d\/www.conf<\/code><\/pre>\n<p>\u5909\u66f4\u3057\u305f\u3068\u3053\u308d\u4e2d\u5fc3\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre><code>[www]\n# dynamic\u3092static\u306b\npm = static\n\n# php-fpm\u306e\u6700\u5927\u5b50\u30d7\u30ed\u30bb\u30b9\u6570\npm.max_children = 3\n\n#500\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u7acb\u3061\u4e0a\u3052\u76f4\u3057\npm.max_requests = 500<\/code><\/pre>\n<h3>PHP-FPM\u8d77\u52d5<\/h3>\n<pre><code>systemctl enable php-fpm.service\nsystemctl start php-fpm.service\n<\/code><\/pre>\n<p>pm.max_children\u306f\u6700\u521d50\u306b\u306a\u3063\u3066\u307e\u3059\u304c\u3001\u3053\u306e\u307e\u307epm\u3092static\u306b\u3059\u308b\u3068\u3001\u3044\u304d\u306a\u308a50\u500b\u30d7\u30ed\u30bb\u30b9\u304c\u7acb\u3061\u4e0a\u304c\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u6b7b\u306c\u306e\u3067\u8a2d\u5b9a\u6f0f\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3082\u4e00\u5ea6\u3084\u3089\u304b\u3057\u307e\u3057\u305f(\u7b11)\u3002<\/p>\n<h3>Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Nginx\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0<\/p>\n<pre><code>vi \/etc\/yum.repos.d\/nginx.repo<\/code><\/pre>\n<p>\u4ee5\u4e0b\u3092\u8a18\u8f09<\/p>\n<pre><code>[nginx]\nname=nginx repo\nbaseurl=http:\/\/nginx.org\/packages\/centos\/7\/$basearch\/\ngpgcheck=0\nenabled=1<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code>yum -y install nginx<\/code><\/pre>\n<div class=\"sharehtml\"><a href=\"http:\/\/nginx.org\/en\/linux_packages.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/nginx.org\/en\/linux_packages.html\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/nginx.org\/en\/linux_packages.html\" target=\"_blank\" rel=\"noopener noreferrer\">nginx: Linux packages<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/nginx.org\/en\/linux_packages.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/nginx.org\/en\/linux_packages.html\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<h3>Nginx\u57fa\u672c\u8a2d\u5b9a<\/h3>\n<pre><code>vi \/etc\/nginx\/nginx.conf<\/code><\/pre>\n<p>\u2193\u30e6\u30fc\u30b6\u30fc\u5909\u66f4\u3002\u6a29\u9650\u3068\u5408\u308f\u305b\u3066\u8a2d\u5b9a\u5909\u66f4\u3002\u3046\u3061\u306fApache\u304b\u3089\u79fb\u884c\u3057\u305f\u306e\u3067apache\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code>user  apache apache;<\/code><\/pre>\n<p>\u2193\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6a29\u9650\u8a2d\u5b9a<\/p>\n<pre><code>chown -R apache:apache \/var\/log\/nginx<\/code><\/pre>\n<h3>\u30b5\u30a4\u30c8\u6bce\u306e\u8a2d\u5b9a<\/h3>\n<pre><code>vi \/etc\/nginx\/conf.d\/hoge.com.conf<\/code><\/pre>\n<pre><code>server {\n    # \u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8TCP\u30dd\u30fc\u30c8\u3067\u3059\u3002\n    listen       80;\n    # \u30b5\u30fc\u30d0\u30fc\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    server_name  hoge.com;\n    # \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    root         \/var\/contents\/hoge.com\/html;\n    # index file \u30bf\u30a4\u30d7\u306e\u512a\u5148\u9806\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    index       index.php index.html index.htm;\n\n    # \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    access_log   \/var\/log\/nginx\/hoge.com\/access.log;\n    error_log    \/var\/log\/nginx\/hoge.com\/error.log;\n\n    #\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\/blog\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\n    location \/ {\n        rewrite \/index.html \/blog\/ permanent;\n    }\n\n    location \/blog {\n        try_files $uri $uri\/ @wordpress;\n    }\n\n    location ~ \\.php$ {\n        try_files $uri @wordpress;\n        fastcgi_index index.php;\n        fastcgi_split_path_info ^(.+\\.php)(.*)$;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;\n        include       fastcgi_params;\n    }\n\n    location @wordpress {\n        fastcgi_index index.php;\n        fastcgi_split_path_info ^(.+\\.php)(.*)$;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_param SCRIPT_FILENAME  $document_root\/blog\/index.php;\n        include       fastcgi_params;\n    }\n}<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u306fhttp:\/\/hoge.com\/blog\u914d\u4e0b\u306bWordPress\u3092\u304a\u3044\u305f\u5834\u5408\u306e\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002\u30c9\u30e1\u30a4\u30f3\u76f4\u4e0b\u306bWordPress\u3092\u7f6e\u304f\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u52d5\u4f5c\u78ba\u8a8d\u306f\u3057\u3066\u307e\u305b\u3093\u3002<\/p>\n<pre><code>server {\n    # \u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8TCP\u30dd\u30fc\u30c8\u3067\u3059\u3002\n    listen       80;\n    # \u30b5\u30fc\u30d0\u30fc\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    server_name  hoge.com;\n    # \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    root         \/var\/contents\/hoge.com\/html;\n    # index file \u30bf\u30a4\u30d7\u306e\u512a\u5148\u9806\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    index       index.php index.html index.htm;\n\n    # \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    access_log   \/var\/log\/nginx\/hoge.com\/access.log;\n    error_log    \/var\/log\/nginx\/hoge.com\/error.log;\n\n    location \/ {\n        try_files $uri $uri\/ @wordpress;\n    }\n\n    location ~ \\.php$ {\n        try_files $uri @wordpress;\n        fastcgi_index index.php;\n        fastcgi_split_path_info ^(.+\\.php)(.*)$;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;\n        include       fastcgi_params;\n    }\n\n    location @wordpress {\n        fastcgi_index index.php;\n        fastcgi_split_path_info ^(.+\\.php)(.*)$;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_param SCRIPT_FILENAME  $document_root\/index.php;\n        include       fastcgi_params;\n    }\n}<\/code><\/pre>\n<h3>\u30b5\u30a4\u30c8\u6bce\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u5148\u4f5c\u6210<\/h3>\n<pre><code>mkdir -p \/var\/log\/nginx\/hoge.com\nchown apache: \/var\/log\/nginx\/hoge.com\/<\/code><\/pre>\n<h3>\u30b5\u30fc\u30d3\u30b9\u767b\u9332 &amp; \u30b5\u30fc\u30d3\u30b9\u8d77\u52d5<\/h3>\n<pre><code>systemctl enable nginx.service\nsystemctl start nginx.service<\/code><\/pre>\n<h3>NFS\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre><code>yum -y install nfs-utils<\/code><\/pre>\n<h3>NFS\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u8a2d\u5b9a &amp; \u30de\u30a6\u30f3\u30c8<\/h3>\n<pre><code>mkdir \/var\/contents\/\nmount -t nfs db.c.my-project99.internal:\/var\/contents \/var\/contents\/\n<\/code><\/pre>\n<p>&#8220;<code>db.c.my-project99.internal<\/code>&#8220;\u306fDB\u30b5\u30fc\u30d0\u30fc\u540d\u306e\u30db\u30b9\u30c8\u540d\u306a\u306e\u3067nslookup\u3067\u78ba\u8a8d\u3057\u3066\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>OS\u8d77\u52d5\u6642\u306bNFS\u3092\u81ea\u52d5\u30de\u30a6\u30f3\u30c8<\/h3>\n<pre><code>vi \/etc\/fstab<\/code><\/pre>\n<p>\u4e00\u756a\u6700\u5f8c\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<pre><code>db.c.my-project99.internal:\/var\/contents \/var\/contents\/ nfs rw,soft<\/code><\/pre>\n<p>\u3053\u3053\u3082\u3061\u3083\u3093\u3068\u3057\u305fDB\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u306b\u66f8\u304d\u63db\u3048\u3066\u306d\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u6e96\u5099\u306f\u3053\u308c\u3067\u7d42\u4e86\u3002<br \/>\n\u6b21\u306fWordPress\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<h3>\u53c2\u8003<\/h3>\n<div class=\"sharehtml\"><a href=\"http:\/\/server-setting.info\/centos\/nginx-wordpress-centos7.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/server-setting.info\/centos\/nginx-wordpress-centos7.html\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/server-setting.info\/centos\/nginx-wordpress-centos7.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7 \u3067LAMP(Nginx+MariaDB(MySQL)+PHP)\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089WordPress\u3092\u52d5\u304b\u3059\u307e\u3067(Nginx\u7de8)\u00a0|\u00a0\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u30fb\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u30fb\u69cb\u7bc9\u306e\u30d2\u30f3\u30c8<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/server-setting.info\/centos\/nginx-wordpress-centos7.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/server-setting.info\/centos\/nginx-wordpress-centos7.html\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<div class=\"sharehtml\"><a href=\"http:\/\/qiita.com\/egnr-in-6matroom\/items\/a08f4851bf16d0131e60\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/150x130\/shadow?http:\/\/qiita.com\/egnr-in-6matroom\/items\/a08f4851bf16d0131e60\" alt=\"\" width=\"150\" height=\"130\" \/><\/a><a style=\"color:#0070C5;\" href=\"http:\/\/qiita.com\/egnr-in-6matroom\/items\/a08f4851bf16d0131e60\" target=\"_blank\" rel=\"noopener noreferrer\">nginx\u3067wordpress\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306b\u5bfe\u5fdc\u3059\u308b &#8211; Qiita<\/a><a href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/qiita.com\/egnr-in-6matroom\/items\/a08f4851bf16d0131e60\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/qiita.com\/egnr-in-6matroom\/items\/a08f4851bf16d0131e60\" alt=\"\" \/><\/a><br style=\"clear:both;\" \/><\/div>\n<p>\u7d9a\u304d\u306f\u3053\u3061\u3089\u2193<\/p><div id=\"advads-3412592477\" class=\"advads-content-placement-after-3rd-paragraph advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n<p><iframe style=\"width:100%;height:155px;max-width:100%;margin:0 0 1.7rem;display:block;\"title=\"\u304a\u540d\u524d\uff0e\uff43\uff4f\uff4d VPS\u304b\u3089Google Compute Engine\u306b\u30b5\u30fc\u30d0\u30fc\u79fb\u884c\u3057\u305f \u305d\u306e3 | A-tak-dot-com\"src=\"http:\/\/hatenablog.com\/embed?url=https:\/\/a-tak.com\/blog\/2015\/10\/18\/move-to-google-compute-engine-part3\/\"width=\"300\"height=\"150\"frameborder=\"0\"scrolling=\"no\"><\/iframe><\/p>\n<div class=\"booklink-box\" style=\"text-align:left;padding-bottom:20px;font-size:small;\/zoom: 1;overflow: hidden;\">\n<div class=\"booklink-image\" style=\"float:left;margin:0 15px 10px 0;\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ecx.images-amazon.com\/images\/I\/51MI15w6hML._SL160_.jpg\" style=\"border: none;\" \/><\/div>\n<div class=\"booklink-info\" style=\"line-height:120%;\/zoom: 1;overflow: hidden;\">\n<div class=\"booklink-name\" style=\"margin-bottom:10px;line-height:120%\">Google Compute Engine\u5165\u9580 (\u30a2\u30b9\u30ad\u30fc\u66f8\u7c4d)[Kindle\u7248]<\/p>\n<div class=\"booklink-powered-date\" style=\"font-size:8pt;margin-top:5px;font-family:verdana;line-height:120%\">posted with <a href=\"http:\/\/yomereba.com\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u30e8\u30e1\u30ec\u30d0<\/a><\/div>\n<\/div>\n<div class=\"booklink-detail\" style=\"margin-bottom:5px;\">\u5409\u7a4d\u60c5\u5831\u682a\u5f0f\u4f1a\u793e \u5409\u7a4d\u793c\u654f KADOKAWA \/ \u30a2\u30b9\u30ad\u30fc\u30fb\u30e1\u30c7\u30a3\u30a2\u30ef\u30fc\u30af\u30b9 2014-07-31    <\/div>\n<div class=\"booklink-link2\" style=\"margin-top:10px;\">\n<div class=\"shoplinkkindle\" style=\"display:inline;margin-right:5px\">Kindle<\/div>\n<div class=\"shoplinkamazon\" style=\"display:inline;margin-right:5px\"><a href=\"http:\/\/www.amazon.co.jp\/exec\/obidos\/ASIN\/4048666096\/website1-22\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon[\u66f8\u7c4d\u7248]<\/a><\/div>\n<\/p><\/div>\n<\/div>\n<div class=\"booklink-footer\" style=\"clear: left\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2028 \u3000\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001Google Compute Engine\u4e0a\u306b\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u3067\u62e1\u5f35\u3059\u308bWordPress\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304f\u65b9\u6cd5\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u5b9f\u969b\u306bDB\u3068Web\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":11023,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[539,542,541,540,9],"class_list":["post-11029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","tag-google-compute-engine","tag-mariadb","tag-nfs","tag-nginx","tag-wordpress"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2015\/10\/gce-diagram1.jpg?fit=2133%2C1600&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/11029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/comments?post=11029"}],"version-history":[{"count":0,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/11029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/media\/11023"}],"wp:attachment":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/media?parent=11029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/categories?post=11029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/tags?post=11029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}