前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >OpenFogOS 安装配置 FAQ

OpenFogOS 安装配置 FAQ

作者头像
雪梦科技
发布2020-05-11 15:38:34
5230
发布2020-05-11 15:38:34
举报
文章被收录于专栏:ITCoder

问题 1:证书过期导致脚本无法正常下载运行

问题

在 x86_64 的 Linux 系统上一键部署 OpenFogOS 节点时出现问题,安装不成功。

代码语言:javascript
复制
install_args="--platform=PEAR_1900_X64_LINUX --user_id=13900000000 --storage_path=auto --cpu_cores=auto --storage_size=auto --bandwidth=auto --memory=auto" bash -c "$(curl -sS https://download.openfogos.com/linux/openfog_installer.sh)"

问题错误提示如下:

代码语言:javascript
复制
# curl -sS https://download.openfogos.com/linux/openfog_installer.sh

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

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

分析

由于 download.openfogos.com 的 SSL 证书过期,导致下载出错,无法下载脚本,并部署 OpenFogOS。

解决方案

代码语言:javascript
复制
curl -sSk https://download.openfogos.com/linux/openfog_installer.sh  -o openfog_installer.sh &&
sed -i "s/curl/curl -k/g" openfog_installer.sh &&
install_args="--platform=PEAR_1900_X64_LINUX --user_id=13900000000 --storage_path=auto --cpu_cores=auto --storage_size=auto --bandwidth=auto --memory=auto" bash openfog_installer.sh

注意事项

请注意替换安装参数,尤其是将--user_id=13900000000替换成你自己注册 OpenFogOS 平台的手机号。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年12月30日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题 1:证书过期导致脚本无法正常下载运行
相关产品与服务
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档