1.下载openresty
http://openresty.org/cn/download.html
2.上传解压
rz -E
tar -xzvf openresty-{version}.tar.gz 其中version为下载的版本号
3.进入openresty目录下,编译安装
cd openresty-{version}.tar.gz
./configure 此处可以先使用./configure --help 看下帮助 常用的配置有--prefix 指定路径,--prefix=PATH set the installation prefix (default to /usr/local/openresty)
make 编译
make install 安装
编写配置文件,搞定
详细的openresty官网都有,仅简单记录下我搭建的操作。