{"id":40,"date":"2020-02-04T05:15:07","date_gmt":"2020-02-03T21:15:07","guid":{"rendered":"https:\/\/www.lmdops.xyz\/?p=40"},"modified":"2020-02-04T05:15:07","modified_gmt":"2020-02-03T21:15:07","slug":"certbot%e7%bb%ad%e7%ad%be%e8%af%81%e4%b9%a6%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/www.lmdops.xyz\/?p=40","title":{"rendered":"certbot\u7eed\u7b7e\u8bc1\u4e66\u5931\u8d25"},"content":{"rendered":"<p>\u4eca\u5929\u6536\u5230\u90ae\u4ef6\u63d0\u793a\u8bc1\u4e66\u5feb\u8981\u8fc7\u671f\u4e86\uff0c\u5f88\u662f\u7591\u60d1\uff0c\u56e0\u4e3a\u8bbe\u7f6e\u4e86\u81ea\u52a8\u7eed\u7b7e\u7684crontab\u4efb\u52a1\u7684\uff0c\u767b\u5f55\u4e0a\u53bb\u624b\u52a8\u6267\u884ccertbot renew\u53d1\u73b0\u62a5\u9519<\/p>\n<p><code>Unable to run the command: nginx -c \/etc\/nginx\/nginx.conf -t<\/code><\/p>\n<p>\u624b\u52a8\u6267\u884c\u8be5\u547d\u4ee4\u53c8\u662f\u6ca1\u95ee\u9898\u7684<\/p>\n<p><code>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<br \/>\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/code><\/p>\n<p>\u7ffb\u4e86\u4e0b\u5b98\u7f51\u6587\u6863\uff0c\u6267\u884ccertbot &#8211;nginx\u67e5\u770b\u5217\u8868\u540c\u6837\u51fa\u73b0\u65e0\u6cd5\u6267\u884cNginx\u547d\u4ee4\u62a5\u9519\uff0c\u624b\u52a8\u91cd\u65b0<\/p>\n<p><code>yum install python2-certbot-nginx<\/code><\/p>\n<p>\u91cd\u65b0\u5b89\u88c5nginx\u7684certbot\u63d2\u4ef6\u540e\u95ee\u9898\u89e3\u51b3\uff0c\u6210\u529f\u7eed\u7b7e\u8bc1\u4e66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6536\u5230\u90ae\u4ef6\u63d0\u793a\u8bc1\u4e66\u5feb\u8981\u8fc7\u671f\u4e86\uff0c\u5f88\u662f\u7591\u60d1\uff0c\u56e0\u4e3a\u8bbe\u7f6e\u4e86\u81ea\u52a8\u7eed\u7b7e\u7684crontab\u4efb\u52a1\u7684\uff0c\u767b\u5f55\u4e0a\u53bb\u624b\u52a8\u6267\u884ccertb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lmdops.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}