OpenResty 编译安装

阿里云服务优惠码
阿里云双11服务器大减价
参加我的团更享活动价上再享5折优惠,预购从速!

  • 废话少说,直接干:
# 下载编译
 wget https://openresty.org/download/openresty-1.13.6.1.tar.gz
# 编译
./configure \
--prefix=/usr/local/openresty \
--with-pcre-jit \
--without-http_redis2_module \
--with-http_iconv_module \
--with-stream \
--with-luajit \
--with-http_stub_status_module \
--with-http_gzip_static_module
  • 此时会提示少一些包,如我的少如下:
yum install pcre-devel openssl-devel gcc curl -y
  • 然后执行 configure 操作
  • 完成会提示 gmake & gmake install,当然也可按文档中说的用 make & make install
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容