linux nginx的编译
来源:互联网 发布:剑网三明教捏脸数据 编辑:程序博客网 时间:2024/05/17 08:59
bzip2 -d pcre-7.8.tar.bz2
tar -vxf pcre-7.8.tar
cd pcre-7.8
./configure
make
make install
nginx install
cd /usr/local/src
tar -zxvf nginx-0.7.43.tar.gz
cd /usr/local/src/nginx-0.7.43
./configure --prefix=/usr/local/server/nginx --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-debug --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_ssl_module --with-http_perl_module --with-http_stub_status_module
LD_LIBRARY_PATH=/usr/local/lib,
然后在启动nginx ok 了
或者--with-pcre 指定pcre的源码路径,可以将pcre静态链入nginx.
或者编译的时候 --with-ld-opt='-L/usr/local/lib'
也可以编译pcre的时候./configure --prefix=/usr
最简单ln -s -b /usr/local/lib/libpcre.so.1 /usr/lib/libpcre.so.1
如果调试
自己添加的nginx模块难免会出现错误,所以调试就势在必行。
直接运行gdb nginx 会出现 No symbol table info available。
编译的时候 加入CFLAGS="-g -O0" ./configure --prefix=/usr/local/server/nginx --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-debug --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_ssl_module --with-http_perl_module --with-http_stub_status_module --add-module=src/ext/helloworld
然后 make
make install
出处:http://blog.chinaunix.net/uid-192452-id-3483710.html
- linux nginx的编译
- Nginx编译:Linux
- Linux 编译安装nginx
- Linux 利用nginx源码编译安装nginx
- linux下查看nginx,apache,mysql,php的编译参数
- linux下查看nginx,apache,mysql,php的编译参数
- linux下查看nginx,apache,mysql,php的编译参数
- nginx在linux和windows系统上的编译安装
- linux下查看nginx,apache,mysql,php的编译参数
- LNMP(linux+nginx+mysql+php)环境的编译安装
- Linux中编译、安装nginx
- Linux下编译安装Nginx
- Linux中编译、安装nginx
- linux下编译安装nginx
- Linux下编译安装Nginx
- nginx的编译
- Nginx的编译安装
- nginx的编译安装
- php_win32service 扩展的简单应用
- jQuery 实现 Scroll to Top 滚动到页面顶部
- 快速幂(完整版)
- 那一年,我们好像很有钱!
- 系统右键菜单的注册表修改
- linux nginx的编译
- 【rzxt】笔者支招:AMD双核电脑安装补丁后的问题
- Android中的Handler的具体用法
- 无法删除 C_PAN.GHO: 访问被拒绝 解决办法
- 瓶颈
- OPEN EXPLORER PLUGIN FOR ECLIPSE
- 三大主流嵌入式操作系统的区别
- JQuery Tabs 选项卡插件
- MFC一些函数说明