美文网首页
OpenResty源码安装

OpenResty源码安装

作者: 神经蛙_06bfz | 来源:发表于2020-12-02 11:39 被阅读0次

本文是在CentOS7.4环境下安装OpenResty

下载

OpenResty下载地址
选择合适的版本下载

# wget https://openresty.org/download/openresty-1.19.3.1.tar.gz

安装依赖

# yum install pcre-devel openssl-devel gcc curl -y

编译

# tar -zxvf openresty-1.19.3.1.tar.gz && cd openresty-1.19.3.1
# ./configure
# make && make install

检查

# /usr/local/openresty/nginx/sbin/nginx -c /usr/local/openresty/nginx/conf/nginx.conf
# curl 127.0.0.1:80
<!DOCTYPE html>
<html>
<head>
<title>Welcome to OpenResty!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to OpenResty!</h1>
<p>If you see this page, the OpenResty web platform is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="https://openresty.org/">openresty.org</a>.<br/>
Commercial support is available at
<a href="https://openresty.com/">openresty.com</a>.</p>

<p><em>Thank you for flying OpenResty.</em></p>
</body>
</html>

相关文章

网友评论

      本文标题:OpenResty源码安装

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