./cerbot-auto renew自动续费

问答中心分类: OneinStack./cerbot-auto renew自动续费
探路者 asked 7 年 ago
老大:您好!
  oneinstack在cronb(root文件)中:
 */20 * * * * /sbin/ntpdate pool.ntp.org > /dev/null 2>&1
=>/sbin前面是不是少了/usr ?
0 10 * * 1 /usr/local/bin/certbot-auto certonly -a webroot --agree-tos --renew-by-default --webroot-path=/data/wwwroot/www.example.com -d http://www.example.com ;/etc/init.d/nginx reload
 
=>上述是对特定的网站SSL证书进行强制续期吗?如果一台VPS上有好几个网站的话,如果要全部强制性续期呢?
 
 
 
 
 
 
 
 
 
 

2 Answers
redsword@gmail.com answered 7 年 ago
[root@gomeiju zhang]# /sbin/ntpdate -h
/sbin/ntpdate: unknown option -h
usage: /sbin/ntpdate [-46bBdqsuv] [-a key#] [-e delay] [-k file] [-p samples] [-o version#] [-t timeo] [-U username] server ...
ntpdate就在/sbin/目录,我是centos7
有几个网站就加几行,我的理解是这样的
 

探路者 answered 7 年 ago
不会是这样!