操作系统为ubuntu 16.04 LTS,openresty的版本为1.11.2.3,安装过程如下:
1、首先安装依赖项
apt-get install libreadline-dev libncurses5-dev libpcre3-dev \
libssl-dev perl make build-essential curl
2、下载openresty源码
http://openresty.org/en/download.html
wget https://openresty.org/download/openresty-1.11.2.3.tar.gz
3、解压压缩包
tar -zxvf openresty-1.11.2.3.tar.gz
4、进入解压后的文件夹
cd openresty-1.11.2.3/
5、执行configure
./configure --prefix=/opt/openresty
6、执行安装
sudo make
sudo make install
参考自openresty的官方网站:
