centos6.7 安装openresty

openresty 在nginx上使用luajit构建nginx的应用

依赖模块

yum install readline-devel pcre-devel openssl-devel gcc  

安装过程大同小异

1.官方下载 https://openresty.org/en/download.html  

wget https://openresty.org/download/openresty-1.11.2.2.tar.gz

2.解压安装 https://openresty.org/en/installation.html

tar -zxvf openresty-1.11.2.2.tar.gz
cd openresty-1.11.2.2
./configure -j2
make -j2
sudo make install

3.启动

cd /usr/local/openresty/nginx/sbin; ./nginx

4.验证  WEB访问IP地址 看到白底黑字的 Welcome to OpenResty!

评论

暂无评论