{"id":13,"date":"2026-01-09T18:11:04","date_gmt":"2026-01-09T10:11:04","guid":{"rendered":"https:\/\/www.quzery.com\/?p=13"},"modified":"2026-01-14T10:43:51","modified_gmt":"2026-01-14T02:43:51","slug":"%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.quzery.com\/?p=13","title":{"rendered":"\u57df\u540d\u81ea\u7b7e\u8bc1\u4e66\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p><strong>\u4f7f\u7528 \u5b98\u65b9 Snap \u5b89\u88c5\u6700\u65b0 Certbot<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt remove certbot -y\n\nsudo apt update\n\nsudo apt install snapd -y\n\nsudo snap install core\n\nsudo snap refresh core\n\nsudo snap install --classic certbot\n\nsudo ln -s \/snap\/bin\/certbot \/usr\/bin\/certbot<\/code><\/pre>\n\n\n\n<p><strong>\u8fd0\u884c\u624b\u52a8 DNS \u9a8c\u8bc1<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo certbot certonly --manual --preferred-challenges dns -d quzery.com -d '*.quzery.com'<\/code><\/pre>\n\n\n\n<p><strong>\u8bc1\u4e66\u76ee\u5f55<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Successfully received certificate.\n\nCertificate is saved at: \/etc\/letsencrypt\/live\/quzery.com\/fullchain.pem\n\nKey is saved at: \u00a0 \u00a0 \u00a0 \u00a0 \/etc\/letsencrypt\/live\/quzery.com\/privkey.pem\n\nThis certificate expires on 2025-12-18.\n\nThese files will be updated when the certificate renews.\n\nNEXT STEPS:\n\n- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.<\/code><\/pre>\n\n\n\n<p><strong>\u81ea\u52a8\u7eed\u7ea6<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u65b9\u6848\u4e00\uff08\u63a8\u8350\uff09\uff1a\u7ed9 quzery.com \u52a0 A \u8bb0\u5f55\uff08\u6700\u7b80\u5355\uff09 \u00a0 \uff01\uff01\uff01\u4e0d\u80fd\u4f7f\u7528\u901a\u914d\u7b26<br><br>\u7c7b\u578b\uff1aA<br><br>\u4e3b\u673a\u8bb0\u5f55\uff1a@ \u503c\uff1a&lt;\u4f60\u8fd9\u53f0\u670d\u52a1\u5668\u7684\u516c\u7f51 IPv4> TTL\uff1a600<br><br>certbot certonly --nginx -d quzery.com<br><br>\u8f93\u51fa<br><br>Successfully received certificate.<br><br>Certificate is saved at: \/etc\/letsencrypt\/live\/quzery.com-0001\/fullchain.pem<br><br>Key is saved at: \u00a0 \u00a0 \u00a0 \u00a0 \/etc\/letsencrypt\/live\/quzery.com-0001\/privkey.pem<br><br>This certificate expires on 2026-03-19.<br><br>These files will be updated when the certificate renews.<br><br>Certbot has set up a scheduled task to automatically renew this certificate in the background.<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><br>If you like Certbot, please consider supporting our work by:<br><br>\u00a0* Donating to ISRG \/ Let's Encrypt: \u00a0 https:\/\/letsencrypt.org\/donate<br><br>\u00a0* Donating to EFF: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0https:\/\/eff.org\/donate-le<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><br>sed -i 's#\/etc\/letsencrypt\/live\/quzery.com-0001\/#\/etc\/letsencrypt\/live\/quzery.com\/#g' \/etc\/nginx\/conf.d\/*.conf &amp;&amp; nginx -t &amp;&amp; systemctl reload nginx<br><br><br><br><\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 \u5b98\u65b9 Snap \u5b89\u88c5\u6700\u65b0&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quzery.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":4,"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/www.quzery.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/www.quzery.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quzery.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quzery.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}