OpenResty安装与部署

    技术2022-07-13  62

    目标:实现Openresty的安装部署

    下载OpenResty

    我们可以在官方(https://openresty.org/cn/)下载 Windows下载

    Win32 所有版本都是用Yichun Zhang的PGP公钥A0E98066签发的。 openresty-1.13.6.1-win32.zip 12MB PGP - 2017年11月13日

    Linux下载

    Windows版本安装

    直接解压安装,启动时,需要nginx.exe 看到这个说明安装成功

    LINUX版本安装

    我这里用的版本openresty-1.13.6.1.tar.gz

    安装插件
    sudo yum -y install readline-devel pcre-devel openssl-devel perl gcc
    安装:
    sudo make install
    配置

    进⼊openresty的加压⽬录内(configure在这个⽬录下)

    sudo ./configure --prefix=/usr/local/openresty --with-http_stub_status_module –prefix=/usr/local/openresty 属性 代表 程序会被安装到 /usr/local/openresty目录下。
    启动
    /usr/local/openresty/nginx/sbin/nginx
    查看⻚⾯
    http://ip:80
    Processed: 0.010, SQL: 9