安装openresty

1.安装依赖

1)yum install pcre-devel, yum install ncurses-devel, yum install readline-devel

2)下载 openresty包 wget https://openresty.org/download/openresty-1.13.6.2.tar.gz

3) 解压 tar zxvf openresty-1.13.62.tar.gz

4)进入到解压后的目录,配置

./configure --prefix=/app/openresty --with-http_realip_module --with-pcre --with-luajit

5)编译安装 make&make install

你可能感兴趣的:(安装openresty)