{"id":10247,"date":"2024-09-17T13:15:32","date_gmt":"2024-09-17T05:15:32","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=10247"},"modified":"2024-09-17T13:15:32","modified_gmt":"2024-09-17T05:15:32","slug":"%e8%af%81%e4%b9%a63%e6%9c%88%e4%b8%80%e6%8d%a2%e5%be%88%e9%ba%bb%e7%83%a6%e4%b8%80%e8%a1%8c%e5%91%bd%e4%bb%a4%e8%ae%a9%e4%bd%a0%e8%a7%a3%e6%94%be%e5%8f%8c%e6%89%8b","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=10247","title":{"rendered":"\u8bc1\u4e663\u6708\u4e00\u6362\u5f88\u9ebb\u70e6?\u4e00\u884c\u547d\u4ee4\u8ba9\u4f60\u89e3\u653e\u53cc\u624b"},"content":{"rendered":"<section style=\"margin-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;, pingfangsc-regular, serif;font-size: 16px;line-height: 1.5em;letter-spacing: 0em;text-align: left\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u95ee\u9898<\/span><\/h2>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u76ee\u524d\u8bc1\u4e66\u7684\u5927\u90e8\u5206\u6709\u6548\u671f\u90fd\u662f3\u4e2a\u6708(\u514d\u8d39)\uff0c\u5bf9\u4e8e\u6211\u4eec\u5c31\u9700\u8981\u6bcf\u6b21\u5728\u5404\u5927\u8fd0\u8425\u5546\u5e73\u53f0\u8fdb\u884c\u91cd\u65b0\u7533\u8bf7\uff0c\u66ff\u6362\u79d8\u94a5\uff0c\u867d\u7136\u5feb\u5230\u671f\u7684\u65f6\u5019\u4f1a\u63d0\u9192\uff0c\u4f46\u662f\u8fd8\u662f\u5f88\u9ebb\u70e6\u3002<\/p>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u5efa\u8bae<\/span><\/h2>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"color: red;font-size: 18px\"> \u5982\u679c\u4f60\u7684nginx\u914d\u7f6e\u6587\u4ef6\u6709\u591a\u4e2a\uff0c\u6bd4\u5982\u4e00\u4e2a\u4e8c\u7ea7\u57df\u540d\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u5efa\u8bae\u4f7f\u7528Certbot\u7684\u624b\u52a8\u6a21\u5f0f\uff0c\u8fd9\u6837\u66f4\u597d\u81ea\u5df1\u53bb\u7ba1\u7406<\/span><\/p>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">Certbot\u7b80\u4ecb<\/span><\/h2>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">CertbotCertbot \u662f\u4e00\u4e2a\u7531 Electronic Frontier Foundation\uff08\u7535\u5b50\u524d\u7ebf\u57fa\u91d1\u4f1a\uff0c\u7b80\u79f0 EFF\uff09\u5f00\u53d1\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u4e3b\u8981\u7528\u4e8e\u81ea\u52a8\u83b7\u53d6\u548c\u66f4\u65b0 Let\u2019s Encrypt \u9881\u53d1\u7684 SSL\/TLS \u8bc1\u4e66\u3002\u5b83\u80fd\u591f\u5e2e\u52a9\u7f51\u7ad9\u7ba1\u7406\u5458\u8f7b\u677e\u5730\u4e3a\u5176\u7f51\u7ad9\u914d\u7f6e HTTPS\uff0c\u63d0\u4f9b\u66f4\u5b89\u5168\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">Certbot \u7684\u4e3b\u8981\u529f\u80fd<\/span><\/h3>\n<ol class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u81ea\u52a8\u5316\u83b7\u53d6\u8bc1\u4e66<\/strong>\uff1aCertbot \u80fd\u591f\u81ea\u52a8\u4e0e Let\u2019s Encrypt \u4ea4\u4e92\uff0c\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\u5e76\u83b7\u53d6 SSL\/TLS \u8bc1\u4e66\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u81ea\u52a8\u914d\u7f6e HTTPS<\/strong>\uff1aCertbot \u53ef\u4ee5\u81ea\u52a8\u914d\u7f6e Web \u670d\u52a1\u5668\uff08\u5982 Apache\u3001Nginx\uff09\uff0c\u4f7f\u5176\u4f7f\u7528\u65b0\u83b7\u5f97\u7684\u8bc1\u4e66\u63d0\u4f9b HTTPS \u670d\u52a1\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u81ea\u52a8\u7eed\u671f<\/strong>\uff1aLet\u2019s Encrypt \u8bc1\u4e66\u7684\u6709\u6548\u671f\u4e3a 90 \u5929\uff0cCertbot \u4f1a\u81ea\u52a8\u5728\u8bc1\u4e66\u5230\u671f\u524d\u66f4\u65b0\u5b83\u4eec\uff0c\u786e\u4fdd HTTPS \u670d\u52a1\u7684\u6301\u7eed\u6027\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u548c Web \u670d\u52a1\u5668<\/strong>\uff1aCertbot \u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982 Ubuntu\u3001Debian\u3001CentOS \u7b49\uff09\u548c\u591a\u79cd Web \u670d\u52a1\u5668\uff08\u5982 Apache\u3001Nginx\uff09\u3002<\/section>\n<\/li>\n<\/ol>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">\u4f7f\u7528 Certbot \u7684\u57fa\u672c\u6b65\u9aa4<\/span><\/h3>\n<ol class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u5b89\u88c5 Certbot<\/strong>\uff1a\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u548c Web \u670d\u52a1\u5668\u7684\u7c7b\u578b\uff0c\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u6216\u76f4\u63a5\u4e0b\u8f7d\u65b9\u5f0f\u5b89\u88c5 Certbot\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u83b7\u53d6\u8bc1\u4e66<\/strong>\uff1a\u901a\u8fc7 Certbot \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6307\u5b9a\u57df\u540d\u5e76\u83b7\u53d6 SSL\/TLS \u8bc1\u4e66\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u914d\u7f6e Web \u670d\u52a1\u5668<\/strong>\uff1aCertbot \u53ef\u4ee5\u81ea\u52a8\u914d\u7f6e Web \u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u914d\u7f6e\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u6d4b\u8bd5\u548c\u9a8c\u8bc1<\/strong>\uff1a\u786e\u4fdd Web \u670d\u52a1\u5668\u6b63\u786e\u542f\u7528\u4e86 HTTPS\uff0c\u5e76\u9a8c\u8bc1\u8bc1\u4e66\u7684\u6709\u6548\u6027\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u81ea\u52a8\u7eed\u671f<\/strong>\uff1aCertbot \u4f1a\u5b9a\u671f\u8fd0\u884c\u5e76\u68c0\u67e5\u8bc1\u4e66\u7684\u6709\u6548\u671f\uff0c\u81ea\u52a8\u7eed\u671f\u8bc1\u4e66\u3002<\/section>\n<\/li>\n<\/ol>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">\u9002\u7528\u573a\u666f<\/span><\/h3>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u4e2a\u4eba\u6216\u5c0f\u578b\u7f51\u7ad9<\/strong>\uff1a\u4e0d\u9700\u8981\u8d2d\u4e70\u5546\u4e1a\u8bc1\u4e66\uff0c\u4f7f\u7528 Let\u2019s Encrypt \u63d0\u4f9b\u7684\u514d\u8d39\u8bc1\u4e66\u5373\u53ef\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u5e0c\u671b\u81ea\u52a8\u7ba1\u7406\u8bc1\u4e66\u7684\u7528\u6237<\/strong>\uff1aCertbot \u81ea\u52a8\u5316\u7684\u6d41\u7a0b\u53ef\u4ee5\u8282\u7701\u624b\u52a8\u7ba1\u7406\u8bc1\u4e66\u7684\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u603b\u7684\u6765\u8bf4\uff0cCertbot \u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u5de5\u5177\uff0c\u80fd\u591f\u5e2e\u52a9\u7f51\u7ad9\u7ba1\u7406\u5458\u8f7b\u677e\u5730\u4e3a\u5176\u7f51\u7ad9\u914d\u7f6e\u548c\u7ba1\u7406 SSL\/TLS \u8bc1\u4e66\uff0c\u63d0\u9ad8\u7f51\u7ad9\u7684\u5b89\u5168\u6027\u3002<\/p>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u81ea\u52a8\u914d\u7f6e(\u53ef\u5ffd\u7565)<\/span><\/h2>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5728CentOS\u4e0a\u4f7f\u7528Certbot\u4e3aNginx\u914d\u7f6eSSL\u8bc1\u4e66\u5e76\u8bbe\u7f6e\u81ea\u52a8\u7eed\u7b7e\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">1. \u5b89\u88c5Certbot<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u9996\u5148\uff0c\u786e\u4fdd\u7cfb\u7edf\u5df2\u66f4\u65b0\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0yum\u00a0update\u00a0-y\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7136\u540e\uff0c\u5b89\u88c5EPEL\uff08Extra Packages for Enterprise Linux\uff09\u5b58\u50a8\u5e93\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0yum\u00a0install\u00a0epel-release\u00a0-y\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u63a5\u4e0b\u6765\uff0c\u5b89\u88c5Certbot\u548cNginx\u63d2\u4ef6\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0yum\u00a0install\u00a0certbot\u00a0python2-certbot-nginx\u00a0-y\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">2. \u83b7\u53d6SSL\u8bc1\u4e66<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f7f\u7528Certbot\u83b7\u53d6SSL\u8bc1\u4e66\u3002\u8fd9\u91cc\u5047\u8bbe\u4f60\u7684\u57df\u540d\u662f<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">example.com<\/code>\uff0c\u8bf7\u66ff\u6362\u6210\u4f60\u7684\u5b9e\u9645\u57df\u540d\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0certbot\u00a0--nginx\u00a0-d\u00a0example.com\u00a0-d\u00a0www.example.com\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5728\u8fd0\u884c\u6b64\u547d\u4ee4\u65f6\uff0cCertbot\u4f1a\u81ea\u52a8\u914d\u7f6eNginx\u4ee5\u4f7f\u7528\u751f\u6210\u7684SSL\u8bc1\u4e66\u3002\u6309\u7167\u63d0\u793a\u5b8c\u6210\u57df\u540d\u9a8c\u8bc1\u3002<\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">3. \u9a8c\u8bc1Nginx\u914d\u7f6e<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Certbot\u6210\u529f\u751f\u6210\u8bc1\u4e66\u540e\uff0c\u5b83\u4f1a\u81ea\u52a8\u66f4\u65b0Nginx\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6d4b\u8bd5Nginx\u914d\u7f6e\u662f\u5426\u6b63\u786e\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0nginx\u00a0-t\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u914d\u7f6e\u6b63\u786e\uff0c\u91cd\u542fNginx\u4ee5\u5e94\u7528\u66f4\u6539\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0systemctl\u00a0restart\u00a0nginx\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">4. \u8bbe\u7f6e\u81ea\u52a8\u7eed\u7b7e<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Certbot\u5b89\u88c5\u65f6\u901a\u5e38\u4f1a\u521b\u5efa\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1\uff08cron job\uff09\u6765\u81ea\u52a8\u7eed\u7b7e\u8bc1\u4e66\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5df2\u5b58\u5728\u7684\u7eed\u7b7e\u4efb\u52a1\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">systemctl\u00a0list-timers\u00a0|\u00a0grep\u00a0certbot\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u7eed\u7b7e\u4efb\u52a1\uff0c\u53ef\u4ee5\u624b\u52a8\u521b\u5efa\u4e00\u4e2a\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0crontab\u00a0-e\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7136\u540e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff0c\u6bcf\u5929\u65e9\u4e0a3:30\u81ea\u52a8\u7eed\u7b7e\u8bc1\u4e66\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">30\u00a03\u00a0*\u00a0*\u00a0*\u00a0\/usr\/bin\/certbot\u00a0renew\u00a0--quiet\u00a0--nginx\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">5. \u6d4b\u8bd5\u81ea\u52a8\u7eed\u7b7e<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u53ef\u4ee5\u624b\u52a8\u6d4b\u8bd5\u81ea\u52a8\u7eed\u7b7e\u662f\u5426\u6709\u6548\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0certbot\u00a0renew\u00a0--dry-run\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u6ca1\u6709\u9519\u8bef\u63d0\u793a\uff0c\u5219\u81ea\u52a8\u7eed\u7b7e\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">6. \u68c0\u67e5\u548c\u66f4\u65b0\u8bc1\u4e66<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Certbot\u4f1a\u5728\u8bc1\u4e66\u5230\u671f\u524d\u81ea\u52a8\u66f4\u65b0\u8bc1\u4e66\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u8bc1\u4e66\u7684\u72b6\u6001\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0certbot\u00a0certificates\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">7. \u76d1\u63a7\u548c\u7ef4\u62a4<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5b9a\u671f\u68c0\u67e5Nginx\u548cCertbot\u7684\u65e5\u5fd7\uff0c\u4ee5\u786e\u4fdd\u8bc1\u4e66\u7eed\u7b7e\u6b63\u5e38\u8fd0\u884c\u3002\u5982\u679c\u53d1\u73b0\u95ee\u9898\uff0c\u53ef\u4ee5\u624b\u52a8\u66f4\u65b0\u8bc1\u4e66\u6216\u8c03\u6574\u81ea\u52a8\u7eed\u7b7e\u811a\u672c\u3002<\/p>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u6837\uff0cCentOS\u7cfb\u7edf\u4e0a\u7684Nginx\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u4f7f\u7528Let&#8217;s Encrypt\u7684\u514d\u8d39SSL\u8bc1\u4e66\uff0c\u5e76\u4e14\u80fd\u591f\u81ea\u52a8\u7eed\u7b7e\uff0c\u786e\u4fdd\u7f51\u7ad9\u7684\u5b89\u5168\u6027\u548c\u8fde\u7eed\u6027\u3002<\/p>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u624b\u52a8\u914d\u7f6e(\u91cd\u70b9)<\/span><\/h2>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u524d\u63d0\uff1a\u65b0\u5efa\u6311\u6218\u6587\u4ef6\u76ee\u5f55\uff0c\u9ed8\u8ba4\u662f\u5728<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\/var\/www\/html\/<\/code><\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\"><span style=\"color: #61aeee;line-height: 26px\">#<\/span><span style=\"line-height: 26px\">\u00a0\u521b\u5efa\u6311\u6218\u6587\u4ef6\u76ee\u5f55<\/span>\nmkdir\u00a0-p\u00a0\/var\/www\/html\/.well-known\/acme-challenge\/\n<span style=\"color: #61aeee;line-height: 26px\">#<\/span><span style=\"line-height: 26px\">\u00a0\u8d4b\u4e88\u6743\u9650<\/span>\nchmod\u00a0-R\u00a0755\u00a0\/var\/www\/html\/.well-known\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">manual \u65b9\u5f0f(\u4e0d\u63a8\u8350)<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u547d\u4ee4\uff1a<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">sudo certbot certonly --manual -d me.acowbo.fun<\/code><\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u5de5\u4f5c\u539f\u7406<\/strong>\uff1a<\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;margin-top: 8px;margin-bottom: 8px;padding-left: 25px\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u4f7f\u7528 <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">--manual<\/code> \u65b9\u5f0f\u65f6\uff0cCertbot \u4f1a\u8981\u6c42\u4f60\u624b\u52a8\u6267\u884c\u4e00\u4e9b\u64cd\u4f5c\u6765\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">Certbot \u4f1a\u7ed9\u51fa\u4e00\u4e2a\u9700\u8981\u521b\u5efa\u7684\u6587\u4ef6\u540d\u79f0\u548c\u5185\u5bb9\uff0c\u4f60\u9700\u8981\u624b\u52a8\u5c06\u8fd9\u4e2a\u6587\u4ef6\u653e\u7f6e\u5230\u4f60\u7684 Web \u670d\u52a1\u5668\u4e0a\u6307\u5b9a\u7684\u4f4d\u7f6e\uff0c\u6216\u8005\u901a\u8fc7 DNS \u65b9\u5f0f\u6dfb\u52a0 TXT \u8bb0\u5f55\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u5728\u5b8c\u6210\u8fd9\u4e9b\u624b\u52a8\u6b65\u9aa4\u540e\uff0cCertbot \u5c06\u7ee7\u7eed\u8fdb\u884c\u9a8c\u8bc1\uff0c\u9a8c\u8bc1\u901a\u8fc7\u540e\u4f60\u5c06\u83b7\u5f97\u8bc1\u4e66\u3002<\/section>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;margin-top: 8px;margin-bottom: 8px;padding-left: 25px\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u5982\u679c\u4f60\u6ca1\u6709\u76f4\u63a5\u8bbf\u95ee\u670d\u52a1\u5668\u7684\u6743\u9650\uff0c\u6216\u8005\u6ca1\u6709\u6b63\u5728\u8fd0\u884c\u7684 Web \u670d\u52a1\u5668\uff08\u4f8b\u5982\u9759\u6001\u7f51\u7ad9\u6258\u7ba1\u5728\u7b2c\u4e09\u65b9\u5e73\u53f0\u4e0a\uff09\uff0c<code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">--manual<\/code> \u65b9\u5f0f\u53ef\u80fd\u4f1a\u66f4\u9002\u5408\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u9002\u5408\u4e34\u65f6\u83b7\u53d6\u8bc1\u4e66\uff0c\u6216\u8005\u5f53\u81ea\u52a8\u5316\u7684\u9a8c\u8bc1\u65b9\u5f0f\u65e0\u6cd5\u4f7f\u7528\u65f6\u3002<\/section>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0certbot\u00a0certonly\u00a0--manual\u00a0-d\u00a0me.acowbo.fun\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f1a\u51fa\u73b0\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11066\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030857955.png\" width=\"1080\" height=\"324\" alt=\"20240918030857955\" title=\"20240918030857955\" \/><figcaption style=\"font-size: 12px;line-height: 1.5em;letter-spacing: 0em;text-align: center;margin-top: 5px\">\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0<\/figcaption><\/figure>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 20px;border-radius: 0px;width: auto;height: auto;overflow: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"text-indent: 0em;padding-top: 16px;padding-bottom: 8px;font-size: 16px;line-height: 1.8em;letter-spacing: 0.02em\">\u5230\u4e86\u8fd9\u4e00\u6b65\u4f60\u4e0d\u53ef\u4ee5\u70b9\u51fb\u56de\u8f66\uff0c\u8981\u73b0\u5728<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\/var\/www\/html\/.well-known\/acme-challenge\/<\/code>\u76ee\u5f55\u4e0b\u65b0\u5efa\u622a\u56fe\u7684\u6587\u4ef6\uff0c\u7136\u540e\u518d\u8f93\u5165\u622a\u56fe\u4e2d\u7684\u5185\u5bb9\uff0c\u8bd5\u4e00\u4e0b\u53ef\u4ee5\u8bbf\u95ee\u5417\u3002\u53ef\u4ee5\u8bbf\u95ee\u5c31\u56de\u8f66<\/p>\n<\/blockquote>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u51fa\u73b0\u95ee\u9898\uff0c\u8bf7\u770b\u6700\u4e0b\u9762\u7684<strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u95ee\u9898\u89e3\u51b3<\/strong><\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">webroot \u65b9\u5f0f<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u547d\u4ee4\uff1a<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">sudo certbot certonly --webroot -w \/var\/www\/html -d me.acowbo.fun<\/code><\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u5de5\u4f5c\u539f\u7406<\/strong>\uff1a<\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;margin-top: 8px;margin-bottom: 8px;padding-left: 25px\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u4f7f\u7528 <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">--webroot<\/code> \u65b9\u5f0f\u65f6\uff0cCertbot \u4f1a\u5728\u6307\u5b9a\u7684 <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">-w<\/code> \u53c2\u6570\u540e\u9762\u7684\u8def\u5f84\uff08\u4f8b\u5982 <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\/var\/www\/html<\/code>\uff09\u4e0b\u521b\u5efa\u4e00\u4e2a <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">.well-known\/acme-challenge\/<\/code> \u6587\u4ef6\u5939\uff0c\u5e76\u5728\u5176\u4e2d\u653e\u7f6e\u4e00\u4e2a\u4e34\u65f6\u6587\u4ef6\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">Let\u2019s Encrypt \u670d\u52a1\u5668\u968f\u540e\u4f1a\u8bbf\u95ee <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">http:\/\/me.acowbo.fun\/.well-known\/acme-challenge\/<\/code> \u4e0b\u7684\u4e34\u65f6\u6587\u4ef6\u6765\u9a8c\u8bc1\u57df\u540d\u7684\u6240\u6709\u6743\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u9a8c\u8bc1\u901a\u8fc7\u540e\uff0cCertbot \u5c06\u83b7\u5f97\u8bc1\u4e66\u5e76\u4fdd\u5b58\u5230\u672c\u5730\u3002<\/section>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;margin-top: 8px;margin-bottom: 8px;padding-left: 25px\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u5df2\u7ecf\u6709\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684 Web \u670d\u52a1\u5668\uff08\u5982 Apache \u6216 Nginx\uff09\uff0c\u5e76\u4e14\u4f60\u80fd\u591f\u5c06 Web \u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\u8def\u5f84\u6307\u5b9a\u4e3a <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">-w<\/code> \u53c2\u6570\uff0c\u90a3\u4e48 <code style=\"width: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">--webroot<\/code> \u65b9\u5f0f\u4f1a\u66f4\u81ea\u52a8\u5316\u4e14\u65b9\u4fbf\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 1.8em;letter-spacing: 0.02em\">\u9002\u5408\u5df2\u7ecf\u90e8\u7f72\u597d\u5e76\u80fd\u591f\u76f4\u63a5\u8bbf\u95ee\u7684\u57df\u540d\u3002<\/section>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7ed3\u679c\u5982\u4e0b<\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11067\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030859266.png\" width=\"1080\" height=\"369\" alt=\"20240918030859266\" title=\"20240918030859266\" \/><figcaption style=\"font-size: 12px;line-height: 1.5em;letter-spacing: 0em;text-align: center;margin-top: 5px\">\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0<\/figcaption><\/figure>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"color: red;font-size: 18px\"> \u663e\u793a\u5df2\u7ecf\u6210\u529f\uff0c\u5e76\u4e14\u5230\u671f\u4e3a2024-11-21<\/span><\/p>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u914d\u7f6enginx\u5e76\u91cd\u542f<\/strong><\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">ssl_certificate \/etc\/letsencrypt\/live\/me.acowbo.fun\/fullchain.pem;\nssl_certificate_key \/etc\/letsencrypt\/live\/me.acowbo.fun\/privkey.pem;\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;border-style: none;border-width: 3px;border-radius: 0px\">\u8bbf\u95ee\u7f51\u7ad9\u5982\u4e0b\u7ed3\u679c<\/strong><\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11068\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030901169.png\" width=\"1080\" height=\"570\" alt=\"20240918030901169\" title=\"20240918030901169\" \/><figcaption style=\"font-size: 12px;line-height: 1.5em;letter-spacing: 0em;text-align: center;margin-top: 5px\">\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0<\/figcaption><\/figure>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u95ee\u9898\u89e3\u51b3<\/span><\/h2>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">\u95ee\u9898\u4e00\uff1anginx\u627e\u4e0d\u5230<\/span><\/h3>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">The\u00a0nginx\u00a0plugin\u00a0is\u00a0not\u00a0working;\u00a0there\u00a0may\u00a0be\u00a0problems\u00a0with\u00a0your\u00a0existing\u00a0configuration.\nThe\u00a0error\u00a0was:\u00a0NoInstallationError(\"Could\u00a0not\u00a0find\u00a0a\u00a0usable\u00a0'nginx'\u00a0binary.\u00a0Ensure\u00a0nginx\u00a0exists,\u00a0the\u00a0binary\u00a0is\u00a0executable,\u00a0and\u00a0your\u00a0PATH\u00a0is\u00a0set\u00a0correctly.\",)\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u610f\u5473\u7740Certbot\u672a\u80fd\u627e\u5230Nginx\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8fd9\u53ef\u80fd\u662f\u7531\u4e8eNginx\u672a\u6b63\u786e\u5b89\u88c5\u3001\u672a\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\uff0c\u6216\u8005\u5176\u4ed6\u914d\u7f6e\u95ee\u9898\u5f15\u8d77\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">1. \u786e\u8ba4Nginx\u5df2\u5b89\u88c5<\/span><\/h3>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">2. \u68c0\u67e5Nginx\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u786e\u8ba4Nginx\u53ef\u6267\u884c\u6587\u4ef6\u5b58\u5728\u4e14\u53ef\u6267\u884c\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cNginx\u53ef\u6267\u884c\u6587\u4ef6\u5e94\u4f4d\u4e8e<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\/usr\/sbin\/nginx<\/code>\u6216<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\/usr\/local\/nginx\/sbin\/nginx<\/code>\u3002<\/p>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u627eNginx\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\"><span style=\"color: #e6c07b;line-height: 26px\">which<\/span>\u00a0nginx\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679c\u627e\u4e0d\u5230Nginx\u7684\u8def\u5f84\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u67e5\u627e\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">sudo\u00a0find\u00a0\/\u00a0-name\u00a0nginx\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">3. \u66f4\u65b0\u7cfb\u7edf\u8def\u5f84<\/span><\/h3>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u679cNginx\u5df2\u5b89\u88c5\u4f46Certbot\u627e\u4e0d\u5230\u5b83\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u7cfb\u7edf\u8def\u5f84\u3002<\/p>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7f16\u8f91\u4f60\u7684<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">~\/.bashrc<\/code>\u6216<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">~\/.bash_profile<\/code>\u6587\u4ef6\uff0c\u6dfb\u52a0Nginx\u7684\u8def\u5f84\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\"><span style=\"color: #e6c07b;line-height: 26px\">export<\/span>\u00a0PATH=<span style=\"color: #d19a66;line-height: 26px\">$PATH<\/span>:\/usr\/<span style=\"color: #e6c07b;line-height: 26px\">local<\/span>\/nginx\/sbin\n<\/code><\/pre>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7136\u540e\u91cd\u65b0\u52a0\u8f7d\u6587\u4ef6\uff1a<\/p>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\"><span style=\"color: #e6c07b;line-height: 26px\">source<\/span>\u00a0~\/.bashrc\n<\/code><\/pre>\n<h3 style=\"margin-top: 30px;margin-bottom: 15px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;height: auto;justify-content: unset;line-height: 1.5em;overflow: unset;width: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"line-height: 1.5em;letter-spacing: 0em;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: auto;justify-content: unset;margin-left: 8px;overflow: unset;text-indent: 0em;width: auto\">\u95ee\u9898\u4e8c\uff1anginx\u914d\u7f6e\u6587\u4ef6\u627e\u4e0d\u5230<\/span><\/h3>\n<pre style=\"border-radius: 5px;margin-top: 10px;margin-bottom: 10px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px\">Saving\u00a0debug\u00a0log\u00a0to\u00a0\/var\/log\/letsencrypt\/letsencrypt.log\nError\u00a0while\u00a0running\u00a0nginx\u00a0-c\u00a0\/etc\/nginx\/nginx.conf\u00a0-t.\n\nnginx:\u00a0[emerg]\u00a0open()\u00a0\"\/etc\/nginx\/nginx.conf\"\u00a0failed\u00a0(2:\u00a0No\u00a0such\u00a0file\u00a0or\u00a0directory)\nnginx:\u00a0configuration\u00a0file\u00a0\/etc\/nginx\/nginx.conf\u00a0test\u00a0failed\n\nThe\u00a0nginx\u00a0plugin\u00a0is\u00a0not\u00a0working;\u00a0there\u00a0may\u00a0be\u00a0problems\u00a0with\u00a0your\u00a0existing\u00a0configuration.\nThe\u00a0error\u00a0was:\u00a0MisconfigurationError('Error\u00a0while\u00a0running\u00a0nginx\u00a0-c\u00a0\/etc\/nginx\/nginx.conf\u00a0-t.nnnginx:\u00a0[emerg]\u00a0open()\u00a0\"\/etc\/nginx\/nginx.conf\"\u00a0failed\u00a0(2:\u00a0No\u00a0such\u00a0file\u00a0or\u00a0directory)nnginx:\u00a0configuration\u00a0file\u00a0\/etc\/nginx\/nginx.conf\u00a0test\u00a0failedn',)\n<\/code><\/pre>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 20px;border-radius: 0px;width: auto;height: auto;overflow: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"text-indent: 0em;padding-top: 16px;padding-bottom: 8px;font-size: 16px;line-height: 1.8em;letter-spacing: 0.02em\">\u8fd9\u91cc\u6211\u5efa\u8bae\u4f60\u76f4\u63a5\u770b\u624b\u52a8\u7eed\u7b7e\u90e8\u5206<\/p>\n<\/blockquote>\n<h2 style=\"margin-top: 30px;margin-bottom: 15px;background-attachment: scroll;);background-position: 50% 50%;background-repeat: no-repeat;background-size: 63px;width: auto;height: auto;align-items: unset;border-style: none;border-width: 1px;border-radius: 0px;box-shadow: none;flex-direction: unset;float: unset;justify-content: center;line-height: 1.5em;overflow: unset\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 18px;line-height: 2.4em;letter-spacing: 0em;margin-top: 38px;margin-bottom: 10px;border-style: none;border-width: 1px;border-radius: 0px;align-items: unset;background-attachment: scroll;background-image: none;background-position: 0% 0%;background-repeat: no-repeat;background-size: auto;box-shadow: none;font-weight: bold;flex-direction: unset;float: unset;height: 38px;justify-content: unset;overflow: unset;text-align: center;text-indent: 0em;width: auto\">\u5f69\u86cb\u4e4b\u81ea\u52a8\u7eed\u7b7e<\/span><\/h2>\n<blockquote style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 20px;border-radius: 0px;width: auto;height: auto;overflow: auto\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"text-indent: 0em;padding-top: 16px;padding-bottom: 8px;font-size: 16px;line-height: 1.8em;letter-spacing: 0.02em\">\u8fd9\u91cc\u4f60\u53ef\u4ee5\u4f7f\u7528python\u6216\u8005\u8bf4Linux\u81ea\u5e26\u7684<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">crontab<\/code>,\u6211\u8fd9\u91cc\u53ea\u5c55\u793a\u63d0\u4f9b\u7684\u811a\u672c\u5b9e\u73b0<\/p>\n<\/blockquote>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11069\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030903203.png\" width=\"1080\" height=\"537\" alt=\"20240918030903203\" title=\"20240918030903203\" \/><figcaption style=\"font-size: 12px;line-height: 1.5em;letter-spacing: 0em;text-align: center;margin-top: 5px\">\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0<\/figcaption><\/figure>\n<p style=\"line-height: 1.8em;letter-spacing: 0.02em;text-indent: 0em;padding-top: 16px;padding-bottom: 8px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u6709\u9700\u8981\u53ef\u4ee5\u5173\u6ce8\u4e0b\u65b9\u516c\u4f17\u53f7\u56de\u590d<code style=\"font-size: 14px;line-height: 1.8em;letter-spacing: 0em;width: auto;height: auto;margin-left: 2px;margin-right: 2px;padding: 2px 4px;border-style: none;border-width: 3px;border-radius: 4px\">\u81ea\u52a8\u7eed\u7b7e<\/code>\u83b7\u53d6<\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11070\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030906677.jpg\" width=\"800\" height=\"253\" alt=\"20240918030906677\" title=\"20240918030906677\" \/><figcaption style=\"font-size: 12px;line-height: 1.5em;letter-spacing: 0em;text-align: center;margin-top: 5px\">ezgif-7-34ee1b78c3<\/figcaption><\/figure>\n<\/section>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898 \u76ee\u524d\u8bc1\u4e66\u7684\u5927\u90e8\u5206\u6709\u6548\u671f\u90fd\u662f3\u4e2a\u6708(\u514d\u8d39)\uff0c\u5bf9\u4e8e\u6211\u4eec\u5c31\u9700\u8981\u6bcf\u6b21\u5728\u5404\u5927\u8fd0\u8425\u5546\u5e73\u53f0\u8fdb\u884c\u91cd\u65b0\u7533\u8bf7\uff0c\u66ff\u6362\u79d8\u94a5\uff0c\u867d\u7136\u5feb\u5230\u671f\u7684\u65f6\u5019\u4f1a\u63d0\u9192\uff0c\u4f46\u662f\u8fd8\u662f\u5f88\u9ebb\u70e6\u3002 \u5efa\u8bae \u5982\u679c\u4f60\u7684nginx\u914d\u7f6e\u6587\u4ef6\u6709\u591a\u4e2a\uff0c\u6bd4\u5982\u4e00\u4e2a\u4e8c\u7ea7\u57df\u540d\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u5efa\u8bae\u4f7f\u7528Certbo&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[176],"topic":[],"class_list":["post-10247","post","type-post","status-publish","format-standard","hentry","category-domain-website","tag-ssl"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10247"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10247\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10247"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10247"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=10247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}