{"id":64,"date":"2020-12-06T13:11:27","date_gmt":"2020-12-06T04:11:27","guid":{"rendered":"https:\/\/lab4ict.com\/website\/?p=64"},"modified":"2024-02-08T07:05:55","modified_gmt":"2024-02-07T22:05:55","slug":"wordpress%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e9%81%8b%e7%94%a8","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/website\/articles\/64","title":{"rendered":"WordPress\u30b5\u30fc\u30d0\u306e\u904b\u7528\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u308b\uff01"},"content":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u3067\u5fc5\u8981\u306b\u306a\u308b\u904b\u7528\u3092\u6574\u7406\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u65e5\u3005\u306e\u30a2\u30af\u30bb\u30b9\u72b6\u6cc1\u306e\u78ba\u8a8d<\/h2>\n<p>Count per Day\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u3001\u30a2\u30af\u30bb\u30b9\u72b6\u6cc1\u306b\u7570\u5909\u304c\u8d77\u304d\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u8a73\u7d30\u306a\u5206\u6790\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/www.google.com\/webmaster\/tools\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Search Console<\/a>\u304a\u3088\u3073<a href=\"https:\/\/analytics.google.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Analytics<\/a>\u306e\u60c5\u5831\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n<h2>\u304a\u554f\u3044\u5408\u308f\u305b\u306e\u78ba\u8a8d<\/h2>\n<p>\u30b5\u30fc\u30d0\u4e0a\u306e\u30e1\u30fc\u30eb\u3092\u53d7\u4fe1\u3057\u3001\u304a\u554f\u3044\u5408\u308f\u305b\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>WordPress\u30b5\u30a4\u30c8\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ea\u30b9\u30c8\u30a2<\/h2>\n<p>WordPress\u30b5\u30a4\u30c8\u306eDB\u30c7\u30fc\u30bf\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u4e07\u304c\u4e00\u306e\u969b\u306b\u6bd4\u8f03\u7684\u5bb9\u6613\u306b\u30b5\u30a4\u30c8\u3092\u5fa9\u65e7\u3055\u305b\u308b\u3053\u3068\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>DB\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h3>\n<p>DB\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u3001gzip\u30b3\u30de\u30f3\u30c9\u3067\u5727\u7e2e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo mkdir -p \/var\/local\/backup\/wordpress\r\n$ sudo chmod 777 \/var\/local\/backup\/wordpress\r\n$ cd \/var\/local\/backup\/wordpress\r\n$ mysqldump -u db01admin -h localhost -p db01 &gt; .\/db01_backup\r\n$ gzip .\/db01_backup\r\n<\/pre>\n<h3>DB\u30c7\u30fc\u30bf\u306e\u30ea\u30b9\u30c8\u30a2<\/h3>\n<p>DB\u3092\u30ea\u30b9\u30c8\u30a2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ cd \/var\/local\/backup\/wordpress\r\n$ gzip -d .\/db01_backup\r\n$ mysql -u db01admin -p db01 &lt; .\/db01_backup\r\n<\/pre>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h3>\n<p>\u79fb\u884c\u5143\u3067\u30d5\u30a1\u30a4\u30eb\u3092tar\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u3001gzip\u30b3\u30de\u30f3\u30c9\u3067\u5727\u7e2e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ cd \/var\/www\/html\r\n$ tar -cvf \/var\/local\/backup\/wordpress\/system.tar .\/system\r\n$ cd \/var\/local\/backup\/wordpress\r\n$ gzip .\/system.tar\r\n<\/pre>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u30a2<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30b9\u30c8\u30a2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ cd \/var\/www\/html\r\n$ sudo cp \/var\/local\/backup\/wordpress\/system.tar.gz .\r\n$ sudo gzip -d .\/system.tar\r\n$ sudo tar -xvf .\/system.tar\r\n$ sudo chown -R apache:apache .\/system\r\n<\/pre>\n<h2>\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u306e\u66f4\u65b0<\/h2>\n<p>\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002Let's encrypt\u306e\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u306f\u6709\u52b9\u671f\u95933\u30f6\u6708\u3067\u3059\u3002CRON\u3067\u90311\u56de\u66f4\u65b0\u78ba\u8a8d\u306e\u8981\u5426\u3092\u78ba\u8a8d\u3057\u81ea\u52d5\u66f4\u65b0\u3092\u884c\u3046\u305f\u3081\u3001\u904b\u7528\u3068\u3057\u3066\u306f\u3001\u96fb\u5b50\u8a3c\u660e\u66f8\u304c\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30d1\u30c3\u30c1\u9069\u7528\u7b49<\/h2>\n<p>WordPress\u3084\u3001\u30c6\u30fc\u30de\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u306a\u3044\u78ba\u8a8d\u3057\u307e\u3059\u3002\u8106\u5f31\u6027\u304c\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001\u5373\u6642\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u691c\u8a0e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u672c\u7a3f\u3067\u306f\u3001WordPress\u30b5\u30fc\u30d0\u3067\u5fc5\u8981\u3068\u306a\u308b\u904b\u7528\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u307e\u3057\u305f\u3002\u7684\u78ba\u306a\u904b\u7528\u3092\u884c\u3046\u3053\u3068\u3067\u3001WordPress\u30b5\u30fc\u30d0\u306e\u5b89\u5b9a\u7a3c\u50cd\u3092\u56f3\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u3067\u5fc5\u8981\u306b\u306a\u308b\u904b\u7528\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-administration"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":4,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":3087,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/64\/revisions\/3087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}