{"id":879,"date":"2026-03-17T08:45:55","date_gmt":"2026-03-17T08:45:55","guid":{"rendered":"https:\/\/opshub.com.cn\/?p=879"},"modified":"2026-03-24T06:31:56","modified_gmt":"2026-03-24T06:31:56","slug":"acme-sh-%e8%87%aa%e5%8a%a8%e7%bb%ad%e6%9c%9f%e8%af%81%e4%b9%a6%e5%88%b0%e6%8c%87%e5%ae%9a%e4%bd%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=879","title":{"rendered":"acme.sh \u81ea\u52a8\u7eed\u671f\u8bc1\u4e66\u5230\u6307\u5b9a\u4f4d\u7f6e"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>acme.sh --install-cert -d www.opshub.com.cn --key-file \/app\/opshub\/blog\/data\/nginx\/certs\/www.opshub.com.cn.key --fullchain-file \/app\/opshub\/blog\/data\/nginx\/certs\/fullchain.cer --reloadcmd \"\/bin\/bash \/root\/.acme.sh\/deploy_cert.sh \/app\/opshub\/blog\/data\/nginx\/certs\/fullchain.cer www.opshub.com.cn \/app\/opshub\/blog\/data\/nginx\/certs blog-nginx\" --ecc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>acme.sh --install-cert -d opshub.com.cn --key-file \/app\/opshub\/blog\/data\/nginx\/certs\/opshub.com.cn.key --fullchain-file \/app\/opshub\/blog\/data\/nginx\/certs\/fullchain.cer --reloadcmd \"\/bin\/bash \/root\/.acme.sh\/deploy_cert.sh \/app\/opshub\/blog\/data\/nginx\/certs\/fullchain.cer opshub.com.cn \/app\/opshub\/blog\/data\/nginx\/certs blog-nginx\" --ecc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nDOMAIN=\"$2\"\nCERT_DIR=\"$3\"\nCONTAINER_NAME=\"$4\"\n\/bin\/cp -f \"$1\" \"$CERT_DIR\/$DOMAIN.cer\"\ndocker restart $CONTAINER_NAME\necho \"\u8bc1\u4e66\u90e8\u7f72\u5b8c\u6210\uff0c$CONTAINER_NAME \u5df2\u91cd\u542f\"\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-879","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=879"}],"version-history":[{"count":1,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/879\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/879\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}