VPS侦探论坛

 找回密码
 注册
查看: 3134|回复: 2

SSL的https证书添加失败

[复制链接]
发表于 2019-10-17 16:13:02 | 显示全部楼层 |阅读模式

ssh终端执行lnmp dnsssl ali
提示我Error: You must be root to run this script!
使用sudo lnmp dnsssl ali,然后根据提示操作
Starting create SSL Certificate use Let's Encrypt...
It seems that you are using sudo, please read this link first:
https://github.com/Neilpang/acme.sh/wiki/sudo
Let's Encrypt SSL Certificate create failed!


我就奇怪了。不用sudo,提示我使用sudo执行
使用sudo执行,提示我不能使用sudo执行

怎么解决?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-10-17 19:24:54 | 显示全部楼层


这是acme的限制,他们不建议使用sudo,你非要用sudo只能编辑 /bin/lnmp 查找:  /usr/local/acme.sh/acme.sh --issue 和 /usr/local/acme.sh/acme.sh --renew 的行,在最后面添加上 --force 然后再试
或直接用root
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-10-17 22:40:39 | 显示全部楼层

切换到root用户,就可以申请了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 08:23 , Processed in 0.025909 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表