系统:centos 7
NGINX版本:Openresty
下载
wget https://openresty.org/package/centos/openresty.repo -O /etc/yum.repos.d/openresty.repo
update the yum index:
sudo yum check-update
failure: repodata/repomd.xml from openresty: [Errno 256] No more mirrors to try. https://openresty.org/package/centos/2.1903/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
vim /etc/yum.repos.d/openresty.repo
变量修改为7
baseurl=https://openresty.org/package/centos/7/$basearch
安装软件包,比如 openresty
sudo yum install -y openresty
安装命令行工具 resty
sudo yum install -y openresty-resty
设置nginx开机启动
https://blog.csdn.net/qq_43544447/article/details/108203274
404错误解决方案
https://blog.csdn.net/Javaxiaowang/article/details/122561221
网友评论