OpenResty源码安装

本文是在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



Welcome to OpenResty!



Welcome to OpenResty!

If you see this page, the OpenResty web platform is successfully installed and working. Further configuration is required.

For online documentation and support please refer to openresty.org.
Commercial support is available at openresty.com.

Thank you for flying OpenResty.

你可能感兴趣的:(OpenResty源码安装)