当前位置: 首页 > news >正文

xp系统没有lls组件可以做网站吗农村电商平台

xp系统没有lls组件可以做网站吗,农村电商平台,美食网站开发目的,WordPress 整个网站导出terrafrom 是一款常用来实现 IaC(基础设施即代码)的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时,terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider&#xff…

terrafrom 是一款常用来实现 IaC(基础设施即代码)的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时,terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider:

provider "tencentcloud" {secret_id  = "your-secret-id"secret_key = "your-secret-key"region     = "your-region"
}terraform {required_providers {tencentcloud = {source = "tencentcloudstack/tencentcloud"version = "1.81.70"}}
}

接着执行 terraform init

terraform initInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
╷
│ Error: Failed to install provider
│
│ Error while installing tencentcloudstack/tencentcloud v1.81.70: could not query provider registry for registry.terraform.io/tencentcloudstack/tencentcloud: failed to
│ retrieve authentication checksums for provider: the request failed after 2 attempts, please try again later: Get
│ "https://github.com/tencentcloudstack/terraform-provider-tencentcloud/releases/download/v1.81.70/terraform-provider-tencentcloud_1.81.70_SHA256SUMS": net/http: request
│ canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

可以看到,由于要连接 github 去下载对应版本的 plugin。但是 github 在国内访问有网络问题,所以就发生了 timeout 的错误。

查看了 terrafrom 文档后发现 init 是有一个 -plugin-dir 参数的,也就是说可以先将 provider 所需的 plugin 下载下来,然后在执行 init 命令的时候指定该路径即可。但是在尝试之后,会报错:

terraform init -plugin-dir=/root/.terraform.d/pluginsInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider tencentcloudstack/tencentcloud: provider registry.terraform.io/tencentcloudstack/tencentcloud was not
│ found in any of the search locations
│
│   - /root/.terraform.d/plugins

最后在腾讯云官方找到了一劳永逸的解决方案。

具体来说,就是设置国内能够访问的 terrafrom registry 源。terraform 默认的 registry 源是 registry.terraform.io。只需要把这个源换成国内可访问的即可。

在用户目录下创建一个 .terrafromrc 文件,写入如下内容:

provider_installation {network_mirror {url = "https://mirrors.tencent.com/terraform/"// 限制只有腾讯云相关Provider, 从url中指定镜像源下载include = ["registry.terraform.io/tencentcloudstack/*"]}direct {// 声明除了腾讯云相关Provider, 其它Provider依然从默认官方源下载exclude = ["registry.terraform.io/tencentcloudstack/*"]}
}

接着重新执行 init 命令即可:

terraform initInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
- Installing tencentcloudstack/tencentcloud v1.81.70...
- Installed tencentcloudstack/tencentcloud v1.81.70 (verified checksum)Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.╷
│ Warning: Incomplete lock file information for providers
│
│ Due to your customized provider installation methods, Terraform was forced to calculate lock file checksums locally for the following providers:
│   - tencentcloudstack/tencentcloud
│
│ The current .terraform.lock.hcl file only includes checksums for linux_amd64, so Terraform running on another platform will fail to install these providers.
│
│ To calculate additional checksums for another platform, run:
│   terraform providers lock -platform=linux_amd64
│ (where linux_amd64 is the platform to generate)
╵Terraform has been successfully initialized!You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

timeout 的问题就此得到解决。

http://www.dinnco.com/news/42447.html

相关文章:

  • 齐齐哈尔市建设网站软件开发流程
  • 网站开发公司上海最新国际新闻10条
  • 广州口碑好的网站建设设计百度seo指南
  • 做网站有什么注意事项百度提交网站
  • 亚马逊欧洲站官方百度下载安装
  • 动易做网站文登seo排名
  • 西安专业网站建设价格引流软件有哪些
  • 做电影网站视频放在那里开封网站设计
  • 优秀网站建设多少钱做了5天游戏推广被抓了
  • 中职网站建设课件电商运营平台
  • 企业网站的建设对于网络品牌的塑造作用官方百度app下载
  • 商业案例网站白山seo
  • 向百度提交网站百度百科官网
  • 广州公司营销型网站建设企业培训课程ppt
  • 石家庄网站建设哪家便宜中国宣布疫情结束日期
  • 网站建设需要的人员搭建网站的步骤和顺序
  • 兰州建设一个网站多少钱seo优化培训机构
  • 买手表去哪个网站买是正品的网络营销策划案例
  • 长沙网站制作好公司平台推广策略都有哪些
  • 关于建设校园网站申请小熊代刷推广网站
  • 观澜网站建设做推广的软件有哪些
  • 交互式多媒体网站开发百度收录时间
  • 网站建设 中国联盟网网站制作方案
  • 哪个网站做任务可以赚钱培训计划方案模板
  • 聚云测网站怎么做的外贸高端网站设计公司
  • 南京专业网站制作哪家好百度客户端下载安装
  • 做软装什么网站可以吗超级外链吧
  • 肇庆专业网站建设公司深圳专业seo
  • 三亚市建设局网站公示seo推广主要做什么
  • 网站有个栏目不想被搜索引擎收录要怎么办搜索引擎营销的内容和层次有哪些