ngx_openresty安装笔记
来源:互联网 发布:淘宝上的lolita代购 编辑:程序博客网 时间:2024/05/17 05:55
系统
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
下载地址
https://openresty.org/en/download.html
文档
https://openresty.org/en/installation.html
前提安装
You should have perl 5.6.1+, libreadline, libpcre, libssl installed into your system. For Linux, you should also ensure that ldconfig is in your PATH environment.
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential curl
还有可能出现找不到库的情况可以先下载下来
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -zvxf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j/
patch -p1 < /path/to/openresty/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch
cd ..
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar -xvf pcre-8.39.tar.gz
选择版本开装
wget http://openresty.org/download/ngx_openresty-1.9.7.2.tar.gz
tar -zxvf ngx_openresty-1.9.7.2.tar.gz
cd ngx_openresty-1.9.7.2/
./configure --prefix=/home/resty/openresty \
--with-luajit \
--with-pcre-jit \
--with-ipv6 \
--without-http_redis2_module \
--with-http_iconv_module \
--with-ld-opt="-L /usr/local/lib" \
-j2
make
出现错误undefined reference to `pcre_free_study'
在末尾加上 --with-ld-opt="-L /usr/local/lib", 这个路径是pcre的安装路径。
还有另外一种方式,是使用源码,在后面加上:
--with-pcre=../pcre-8.39 --with-pcre-jit
pcre-8.39为pcre的源码
make install
启动
/home/resty/openresty/nginx/sbin/nginx -p /home/resty/openresty/nginx/conf/nginx.conf
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
下载地址
https://openresty.org/en/download.html
文档
https://openresty.org/en/installation.html
前提安装
You should have perl 5.6.1+, libreadline, libpcre, libssl installed into your system. For Linux, you should also ensure that ldconfig is in your PATH environment.
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential curl
还有可能出现找不到库的情况可以先下载下来
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -zvxf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j/
patch -p1 < /path/to/openresty/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch
cd ..
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar -xvf pcre-8.39.tar.gz
选择版本开装
wget http://openresty.org/download/ngx_openresty-1.9.7.2.tar.gz
tar -zxvf ngx_openresty-1.9.7.2.tar.gz
cd ngx_openresty-1.9.7.2/
./configure --prefix=/home/resty/openresty \
--with-luajit \
--with-pcre-jit \
--with-ipv6 \
--without-http_redis2_module \
--with-http_iconv_module \
--with-ld-opt="-L /usr/local/lib" \
-j2
make
出现错误undefined reference to `pcre_free_study'
在末尾加上 --with-ld-opt="-L /usr/local/lib", 这个路径是pcre的安装路径。
还有另外一种方式,是使用源码,在后面加上:
--with-pcre=../pcre-8.39 --with-pcre-jit
pcre-8.39为pcre的源码
make install
启动
/home/resty/openresty/nginx/sbin/nginx -p /home/resty/openresty/nginx/conf/nginx.conf
0 0
- ngx_openresty安装笔记
- 学习ngx_openresty之openresty安装 一
- 淘宝Tengine vs ngx_openresty
- 淘宝Tengine vs ngx_openresty
- 安装笔记
- (笔记) Openssl 成功安装笔记。
- mysql安装笔记
- pvpgn安装笔记
- openwebmail安装笔记
- Bugzilla 的安装笔记
- E17安装笔记
- MySQL笔记:MySQL安装
- Apache安装笔记(转贴)
- Nutch 安装使用笔记
- gentoo安装文档 笔记
- FVWM安装笔记
- Debian安装笔记
- fedora5安装美化笔记
- Jquery 如何 获取dropdownlist、RadioButton 选中值
- session存入redis
- [LeetCode]367. Valid Perfect Square
- C# 字符串操作——性能优化细节
- 10-if-判断的基本用法
- ngx_openresty安装笔记
- oracle数据库的导入导出
- 关于c/c++中的isdigit()函数
- STM32之SystemInit()函数的探讨
- C# 数组、ArrayList、List、Dictionary的用法与区别
- listview滑动距离
- Ubuntu环境下简单配置vim
- 跨平台的线程休眠函数
- 将字符串转换为UTF-8编码