Nginx部署

2023-07-23  本文已影响0人  云鹏_792b

系统: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

上一篇下一篇

猜你喜欢

热点阅读