码迷,mamicode.com
首页 > Web开发 > 详细

curl: (60) Peer's Certificate has expired

时间:2020-06-25 13:35:57      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:load   localhost   pos   date   虚拟机   github   tail   cert   安装   

安装docker-compose出现错误,安装命令:
curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

报错信息:

curl: (60) Peer‘s Certificate has expired.
More details here: http://curl.haxx.se/docs/sslcerts.html

原因: 虚拟机时间不准确,重新设置一下就好了

  1. 查看时间
    [root@localhost ~]# date
    Sat Sep 7 19:46:05 CST 2019
  2. 设置时间
    [root@localhost ~]# date -s "2020-06-25 13:11:30"
    Thu Jun 25 13:11:30 CST 2020
  3. 再次查看
    [root@localhost ~]# date
    Thu Jun 25 13:11:32 CST 2020

curl: (60) Peer's Certificate has expired

标签:load   localhost   pos   date   虚拟机   github   tail   cert   安装   

原文地址:https://www.cnblogs.com/linyufeng/p/13191567.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!