{"id":1469,"date":"2018-12-28T12:46:21","date_gmt":"2018-12-28T03:46:21","guid":{"rendered":"https:\/\/test.ji0vwl.net\/?p=1469"},"modified":"2019-01-13T11:31:53","modified_gmt":"2019-01-13T02:31:53","slug":"lightsail-%e3%81%abwordpress%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%ef%bc%88%e3%81%9d%e3%81%ae3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/ji0vwl.net\/index.php\/2018\/12\/28\/1469\/","title":{"rendered":"Lightsail \u306bWordPress\u3092\u5165\u308c\u308b\uff08\u305d\u306e3\uff09"},"content":{"rendered":"<p>\u3064\u3065\u3044\u3066\u3001Let&#8217;s Encrypt\u306eSSL\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u66f4\u65b0\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sudo -i\r\n# yum -y install cronie-noanacron\r\n# yum -y remove cronie-anacron\r\n<\/pre>\n<p>\u6bce\u67081\u65e5\u300103:00\u306b\u5f37\u5236\u66f4\u65b0<\/p>\n<pre>\r\n# vi \/etc\/cron.d\/dailyjobs\r\n-------------------------------\r\n# Run the daily, weekly, and monthly jobs if cronie-anacron is not installed\r\nSHELL=\/bin\/bash\r\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin\r\nMAILTO=xxxx@ji0vwl.com\r\n\r\n# run-parts\r\n0 3 1 * * root \/bin\/certbot renew --force-renew --rsa-key-size 4096 --post-hook \"systemctl reload httpd\"\r\n02 4 * * * root [ ! -f \/etc\/cron.hourly\/0anacron ] && run-parts \/etc\/cron.daily\r\n22 4 * * 0 root [ ! -f \/etc\/cron.hourly\/0anacron ] && run-parts \/etc\/cron.weekly\r\n42 4 1 * * root [ ! -f \/etc\/cron.hourly\/0anacron ] && run-parts \/etc\/cron.monthly\r\n-------------------------------\r\n:wq\r\n\r\n\r\n#  systemctl restart crond\r\n<\/pre>\n<p>cron\u5b9f\u884c\u5f8c\u3001\u30e1\u30fc\u30eb\u304c\u6765\u308b\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre>\r\n# vi \/etc\/postfix\/main.cf\r\n-------------------------------\r\n...\r\nmydomain = ji0vwl.net\r\n...\r\nmyorigin = $mydomain\r\n...\r\nmydestination = $mydomain\r\n...\r\n-------------------------------\r\n:wq\r\n\r\n# systemctl restart postfix\r\n<\/pre>\n<p>CentOS6\u3067\u306f crontab -e \u3067\u3044\u3051\u307e\u3057\u305f\u304c\u3001CentOS7\u3067\u3084\u308a\u65b9\u304c\u5909\u308f\u3063\u3066\u3044\u3066\u82e5\u5e72\u30cf\u30de\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3064\u3065\u3044\u3066\u3001Let&#8217;s Encrypt\u306eSSL\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u66f4\u65b0\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002 $ sudo -i # yum -y install cronie-noanacron # yum -y remove c &hellip; <a href=\"https:\/\/ji0vwl.net\/index.php\/2018\/12\/28\/1469\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Lightsail \u306bWordPress\u3092\u5165\u308c\u308b\uff08\u305d\u306e3\uff09<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1469","post","type-post","status-publish","format-standard","hentry","category-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/1469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/comments?post=1469"}],"version-history":[{"count":0,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/1469\/revisions"}],"wp:attachment":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/media?parent=1469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/categories?post=1469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/tags?post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}