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

  Seves

source link: Resolve the Amazon(AWS) EC2 Linux OpenResty Install 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 the problem of Amazon(AWS) EC2 Linux Install OpenResty with repomd.xml return 404 error

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:

1.add openresty repo:

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

2.install openresty

sudo yum install openresty

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

sudo yum install openresty-resty

本文链接:https://www.fcblog.top/articles/2018/09/09/1536494224619.html

fc
2,462