要在nginx上开发,所以先了解下这个是干嘛的..百度一下很多

编译源码需要的组件

1.zlib

2.pcre

3.openssl

使用ubuntu的话.可以直接使用

sudo apt-get install zlib

sudo apt-get install pcre

sudo apt-get install openssl

这些默认都放在系统目录下.我比较喜欢自己编译

------------------------------------

库下载地址:

源码下载地址 zlib

http://www.zlib.net/

PCRE --支持正则表达式

http://www.pcre.org/

opensll安装(可选), 支持安全协议的站点

http://www.openssl.org/

nginx

http://nginx.org/en/download.html

1.编译zlib

tar xvf zlib-1.2..tar.gz
./configure --static --prefix=/home/charles/flvplay/source/libs/zlib
make
make install

2.编译openssl

tar xvf openssl-1.0.le.tar.gz
./config --prefix=/home/charles/flvplay/source/libs/openssl -L/home/charles/flvplay/source/libs/zlib/lib -I/home/charles/flvplay/source/libs/zlib/include threads zlib enable-static-engine
make
make install

3.编译pcre

tar xvf pcre-8.33.tar.gz
./configure --prefix=/home/charles/flvplay/source/libs/pcre
make
make install

4.编译ngnix

tar xvf nginx-1.5..tar.gz
./configure --prefix=/home/charles/flvplay/source/libs/nginx --with-debug --with-openssl=/home/charles/flvplay/source/openssl-1.0.le --with-zlib=/home/charles/flvplay/source/zlib-1.2. --with-pcre=/home/charles/flvplay/source/pcre-8.33 --with-http_stub_status_module --with-http_gzip_static_module
make
make install
#备注:--with-openssl --with-zlib --with-pcre这3个路径是他们对应的源码路径..开始我以为是对应库路径.折腾了好久...

生成的nginx在/home/charles/flvplay/source/libs/nginx/sbin下

./nginx --运行程序
在地址栏输入: http://localhost 如果看到以下效果,说明正确安装了

也可以直接下载编写好的Makefile

下载地址:

https://github.com/charlessoft/flvplay

(原)nginx 源码编译的更多相关文章

  1. Nginx源码编译安装选项

    [Nginx源码编译过程] make是用来编译的,它从Makefile中读取指令,然后编译. make install是用来安装的,它也从Makefile中读取指令,安装到指定的位置. configu ...

  2. nginx源码编译以及源码编译过程中遇到的问题

    本文主要讲nginx安装以及安装过程中遇到的问题. 谈到nginx 必须聊聊它的起源和发展. nginx是由俄罗斯工程师Igor Sysoev 用C语言开发的一个免费开源的Web服务器软件,于2004 ...

  3. Nginx源码编译

    1. 概述 有时由于添加了自己编写的c++模块,或者改了源码的一些名称.配置什么的,需要自行编译nginx. 可以先下下来源码,然后需要的话就自己改下源码或增加模块,最后再编译成linux或者wind ...

  4. nginx源码编译安装(详解)

    nginx编译安装 安装步骤: 官网下载合适的版本,建议选择稳定版本. 官网地址:https://nginx.org wget https://nginx.org/download/nginx-1.2 ...

  5. nginx 源码编译 用OPENSSL源码 开启 SSL

    ./configure --prefix=/usr/local/nginx --with-openssl=/home/uniqs/thirdparty/openssl/openssl-1.1.1d - ...

  6. nginx源码编译安装

    安装编译所需的包: [root@xaiofan ~]# yum install -y gcc gcc-c++ autoconf automake 安装nginx使用某些功能需要的包: [root@xa ...

  7. centos 下nginx源码编译安装

    1.下载nginx 进入nginx官网下载nginx的稳定版本,我下载的是1.10.3. 下载:wget http://nginx.org/download/nginx-1.10.3.tar.gz 解 ...

  8. nginx源码编译问题

    [root@localhost nginx-1.7.4]# ./configure checking for OS + Linux 2.6.32-431.el6.x86_64 x86_64 check ...

  9. 【运维技术】Nginx安装教程(yum安装,源码编译)

    安装方式 yum直接更新源安装 源码直接编译之后安装 使用yum进行直接安装 Installing a Prebuilt CentOS/RHEL Package from an OS Reposito ...

随机推荐

  1. 【转】10分钟搭建NDK的Android开发环境

    原文网址:http://blog.csdn.net/u012176591/article/details/23018913 作者:金良(golden1314521@gmail.com) csdn博客: ...

  2. 将你的Asp.NET应用程序嵌入到SharePoint

    转:http://www.cnblogs.com/Clank/archive/2007/05/21/754073.html 为什么要将Asp.net应用程序嵌入到SharePoint?这个我们不讨论! ...

  3. C#百万数据查询超时问题

    用c#从百万数据中筛选一些信息时,经常会出现程序连接超时的错误,常见的错误很多,例如:Timeout expired. The timeout period elapsed prior to comp ...

  4. u-boot向linux内核传递启动参数(详细)

    U-BOOT 在启动内核时,会向内核传递一些参数.BootLoader 可以通过两种方法传递参数给内核,一种是旧的参数结构方式(parameter_struct),主要是 2.6 之前的内核使用的方式 ...

  5. HDU 2289 Cup

    Cup Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submiss ...

  6. 转:eclipse导入工程中文乱码问题

    eclipse之所以会出现乱码问题是因为eclipse编辑器选择的编码规则是可变的.一般默认都是UTF-8或者GBK,当从外部导入的一个工程时,如果该工程的编码方式与eclipse中设置的编码方式不同 ...

  7. SystemParametersInfo

    Python的模块pywin32中的win32gui.SystemParametersInfo()函数 在使用win32con.SPI_SETDESKWALLPAPER设置Wallpaper时,其第二 ...

  8. TCP服务端和客户端的框架

    提供一个框架服务器端: 创建一个Socket sFd=socket(AF_INET,SOCK_STREAM,0) 把Socket和本机的IP,TCP口绑定 bind(sFd,(structsockad ...

  9. leetcode@ [68] Text Justification (String Manipulation)

    https://leetcode.com/problems/text-justification/ Given an array of words and a length L, format the ...

  10. Android-Native-Server 启动和注册详细分析

    Android-Native-Server 启动和注册详细分析     以mediaService为实例来讲解: mediaService的启动入口 是一个 传统的  main()函数 源码位置E:\ ...