OpenResty源码安装

2020-12-02  本文已影响0人  神经蛙_06bfz

本文是在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>
上一篇 下一篇

猜你喜欢

热点阅读