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:
- sudo vim /etc/yum.repos.d/openresty.repo
- 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
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于