[已解决]lnmp.org一键脚本生成ssl证书失败

环境:centos7-64 php,使用了lnmp.org一键搭配脚本
使用lnmp ssl add生成ssl证书失败,提示/usr/local/acme.sh/upgrade.sh: No such file or directory。
已知lnmp.org脚本是使用github上的acme.sh进行的生成,根据日志到/usr/local/目录中找不到acme.sh,猜测是根本没有下载到脚本。查看日志,有下面一段:
--2024-09-02 16:58:23-- https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net (soft.vpser.net)... failed: Name or service not known.
wget: unable to resolve host address ‘soft.vpser.net’
tar (child): latest.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/usr/bin/lnmp: line 1186: cd: acme.sh-*: No such file or directory
/usr/bin/lnmp: line 1187: ./acme.sh: No such file or directory
sed: can't read /usr/local/acme.sh/acme.sh: No such file or directory
/usr/bin/lnmp: line 1192: /usr/local/acme.sh/upgrade.sh: No such file or directory
chmod: cannot access '/usr/local/acme.sh/upgrade.sh': No such file or directory
Restarting cron (via systemctl): cron.service.
/usr/bin/lnmp: line 1220: /usr/local/acme.sh/acme.sh.env: No such file or directory
Generate ssl certificate using BuyPass...
/usr/bin/lnmp: line 1339: /usr/local/acme.sh/acme.sh: No such file or directory
注意日志中有关键的一段:Resolving soft.vpser.net (soft.vpser.net)... failed: Name or service not known,由于论坛现在登录不了,也找不到作者,根据这一句进行搜索,果然也有人遇到这个问题,起因是可能是由于域名被墙,导致大面积安装故障,办法是将脚本中的旧地址换成新地址。
打开/usr/bin/lnmp,1180行左右,将其中的https://soft.vpser.net/lib/acme.sh/latest.tar.gz,改为https://soft.lnmp.com/lib/acme.sh/latest.tar.gz。
保存后重新执行lnmp ssl add,问题解决。
参考:https://bbs.lnmp.com/thread-27108-1-1.html
评论已关闭