OpenResty = Nginx + Lua,是一个增强的Nginx,可以编写lua脚本实现非常灵活的逻辑了
1.安装开发库依赖
yum install -y pcre-devel openssl-devel gcc curl
2.配置yum的依赖源
yum install yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
3.安装OpenResty
yum install openresty
4.openresty的默认安装目录
/usr/local/openresty
5.启动openresty(Nginx)
/usr/local/openresty/nginx/sbin/nginx
或
systemctl restart openresty
6.通过浏览器查看nginx的页面
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 our openresty.org site
Commercial support is ava