centos6安装openresty
1.安装依赖
yum -y install readline-devel pcre-devel openssl-devel gcc perl curl
2.下载源码压缩包
下载网站:https://openresty.org/en/download.html
tar -zxvf openresty-1.15.8.2.tar.gz
cd openresty-1.15.8.2
./configure
或者
./configure --prefix=/usr/local/ --with-luajit --without-http_redis2_module --with-http_iconv_module
然后编译安装
make
make install
完成后在usr/local/下出现openresty文件
启动nginx
cd /usr/local/openresty/nginx/sbin/
./nginx
打开浏览器http://ip:80
出现welcome to openresty