美文网首页
Nginx部署

Nginx部署

作者: 云鹏_792b | 来源:发表于2023-07-23 15:26 被阅读0次

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

    相关文章

      网友评论

          本文标题:Nginx部署

          本文链接:https://www.haomeiwen.com/subject/kiwfpdtx.html