LNMP无法开启SSL提示No such file or directory

70次阅读
没有评论

网站服务器使用的是lnmp环境,以前没开启SSL。现在想使用lnmp ssl add的命令来添加,结果提示如下

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 1168: cd: acme.sh-*: No such file or directory
/usr/bin/lnmp: line 1169: ./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 1174: /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
no crontab for root
Add acme.sh upgrade crontab rule...
no crontab for root
Restarting cron (via systemctl): cron.service.
/usr/bin/lnmp: line 1200: /usr/local/acme.sh/acme.sh.env: No such file or directory
DNS Provider: cf not found.

猜测是https://soft.vpser.net服务器故障,导致文件没下载和安装。

按网站上的说明,有soft2,soft3,soft4。测试了soft2,可以。那就去修改文件吧。文件具体位置:

/usr/bin/lnmp

大约位置:1116行,把https://soft.改为https://soft2.即可。

大功告成。

后期考虑其他环境。

正文完
 0
评论(没有评论)