1.安装acme.sh建议切换到root模式,可以减少证书安装时的问题sudosu注意:MacOS不用切换到root更简单。curlhttps://get.acme.sh|sh-s
1.安装acme.sh
建议切换到root模式,可以减少证书安装时的问题
sudo su 注意:MacOS 不用切换到root更简单。
curl https://get.acme.sh | sh -s email=my@example.com或者
curl https://get.acme.sh | sh如果上面官方下载地址失败 或者 太慢,可以选用国内的备用地址
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s email=my@example.com或者
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh安装完成提示

注意:安装完成后,再重新打开命令行(如果是 SSH,选择重新连接),以使acme.sh命令生效。
如果还是出现执行acme.sh命令出错,把acme.sh改成绝对路径/root/.acme.sh/acme.sh即可。。
本站部分文章来自网络或用户投稿,如无特殊说明或标注,均为本站原创发布。涉及资源下载的,本站旨在共享仅供大家学习与参考,如您想商用请获取官网版权,如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。