Ubuntu14.04:
卸载原有通过apt安装的nginx:
apt remove nginx nginx-commonapt purge nginx nginx-commonapt remove nginx-full nginx-common安装需要的依赖:
apt install zlib1g-devapt install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential获取源码进行编译安装:
wget https://openresty.org/download/openresty-1.13.6.2.tar.gztar zxvf openresty-1.13.6.2.tar.gzcd openresty-1.13.6.2./configure --with-luajit --with-http_ssl_module --with-http_realip_modulemake -j 8make install坑点:
1、ubuntu下zlib支持包交zlib1g-dev2、openresty-1.13.6.2之前的版本编译出现storage size of ‘ctx’ isn’t known,问题是openssl的版本问题。openresty-1.13.6.2已经修复了这个问题,不需要修改openssl的版本。 继续阅读与本文标签相同的文章
上一篇 :
又一个PHP的奇怪特性—[.空格
下一篇 :
六月安恒月赛——记录
-
前端开发者必备Nginx知识
2026-05-25栏目: 教程
-
浅层循环神经网络CORnet-S:最像大脑的物体识别高手
2026-05-25栏目: 教程
-
nginx配置location语法
2026-05-25栏目: 教程
-
Java编程题目(三)
2026-05-25栏目: 教程
-
[难]令人惊艳的最短路问题
2026-05-25栏目: 教程
