VPS侦探论坛

 找回密码
 注册
查看: 3179|回复: 3

lnmp 1.4 beta certbot/certbot-auto

[复制链接]
发表于 2017-1-3 13:57:38 | 显示全部楼层 |阅读模式

军哥,

   您好,我在lnmp1.4中的lnmp文件中看到如下代码,有的地方是certbot,有的地方又是certbot-auto的,

这样会有问题吗?




else
        wget https://dl.eff.org/certbot-auto --no-check-certificate -O /bin/certbot
        chmod +x /bin/certbot
        if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
            yum -y install epel-release
        fi
    fi
    echo "Starting create SSL Certificate use Let's Encrypt..."
    /bin/certbot certonly --email ${email} --agree-tos -n --webroot -w ${vhostdir} ${letsdomain}
    lets_status=$?
    if [ "${lets_status}" = 0 ]; then
        Check_Lets_Cron
        echo "Let's Encrypt SSL Certificate create successfully."
    else
        Echo_Red "Let's Encrypt SSL Certificate create failed!"

..................
..................

Check_Lets_Cron()
{
    if crontab -l|grep -q "/bin/certbot renew";then
        echo "Let's encrypt crontab renew rule is exist."
    else
        echo "Add Let's encrypt crontab renew rule..."
        (crontab -l ; echo '0 3 */7 * * /bin/certbot renew --renew-hook "/etc/init.d/nginx reload"') | crontab -
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-3 17:59:41 | 显示全部楼层


没问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-3 22:12:08 | 显示全部楼层

回复 2# 的帖子


军哥:

  下载和安装certbot的文件是certbot-auto,然后获取证书和续期的文件是certbot了,应该会发生找不到该文件的错误吧?虽然他们的命令都相同,但两个是不同文件哦!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-4 09:56:19 | 显示全部楼层

回复 3# 的帖子




那是你没看明白基本命令参数和脚本
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-28 03:31 , Processed in 0.025945 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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