Resolve the Amazon(AWS) EC2 Linux Install OpenResty with repomd.xml return 404 error

本贴最后更新于 2022 天前,其中的信息可能已经渤澥桑田

source link: Resolve the Amazon(AWS) EC2 Linux Install OpenResty with repomd.xml return 404 error

When install the OpenResty on Amazon(AWS) EC2 Linux Maybe have the follow error:

https://openresty.org/package/amazon/2/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

resolve method

modify the config file openresty.repo, change the baseurl tag content value of "$releasever" to "latest",the steps are as follows:

  1. sudo vim /etc/yum.repos.d/openresty.repo
  2. change the baseurl tag content value of "$releasever" to "latest",the changed as follow:
    baseurl=https://openresty.org/package/amazon/latest/$basearch

Remarks:

the steps of install OpenResty on Amazon(AWS) EC2 Linux as follows:

add openresty repo:

sudo yum install yum-utils
sudo yum-config-manager --add-repo https://openresty.org/package/amazon/openresty.repo

install openresty

sudo yum install openresty

if you want to install resty command tools,only need install openresty-resty

sudo dnf install openresty-resty
  • B3log

    B3log 是一个开源组织,名字来源于“Bulletin Board Blog”缩写,目标是将独立博客与论坛结合,形成一种新的网络社区体验,详细请看 B3log 构思。目前 B3log 已经开源了多款产品:SymSoloVditor思源笔记

    1083 引用 • 3461 回帖 • 287 关注
  • OpenResty

    OpenResty 是一个基于 NGINX 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库、第三方模块以及大多数的依赖项。用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关。

    17 引用 • 35 关注
  • repomd.xml
    2 引用
  • AWS
    10 引用 • 28 回帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...