linux下lighttpdserver的具体安装步骤 以及对flv流媒体的支持配置
准备条件:
a,创建/usr/local/lighttpd文件夹,用于安装lighttpd
b,创建lighttpd用户password为lighttpd账号,用于lighttpd的启动用户
c,安装prce软件包,Perl兼容的规则表达式库.下载地址 http://sourceforge.net/projects/pcre/files/pcre/7.7/pcre-7.7.tar.gz/download
1,首先去官网http://www.lighttpd.net/下载相应的安装文件(眼下最新1.4.35)。
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.35.tar.gz
2,解压安装包 lighttpd-1.4.35.tar.gz
[root@host lighttpd]# tar -zxvf lighttpd-1.4.35
3,编译lighttpd安装文件
[root@host lighttpd-1.4.35]# cd lighttpd-1.4.35
[root@host lighttpd-1.4.35]# ./configure --prefix=/usr/local/lighttpd
[root@host lighttpd-1.4.35]# make
[root@host lighttpd-1.4.35]# make install
4,创建www文件夹,用于存放html等文件
[root@host lighttpd-1.4.35]# mkdir -p /srv/www/htdocs/
5,复制配置文件到etc文件夹命令例如以下
[root@host lighttpd]# cp - p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d /usr/local/lighttpd/etc
6,创建日志输出文件夹
[root@host lighttpd]# mkdir - p /var/log/lighttpd
7,改动启动关闭重新启动配置
cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/lighttpd
8,然后改动/etc/init.d/lighttpd,把
lighttpd="/usr/sbin/lighttpd"
改为
lighttpd="/usr/local/lighttpd/sbin/lighttpd"
9,进入文件夹/usr/local/lighttpd/etc。改动lighttpd.conf的var.log_root的值为"/var/log/lighttpd"
10,改动lighttpd的ipport信息
server.port = 8080 ##
## Use IPv6?
##
server.use-ipv6 = "disable" ##
## bind to a specific IP
##
server.bind = "192.168.10.1"
11,改动 modules.conf文件,用来支持flv伪流模,改后例如以下
server.modules = (
"mod_access",
# "mod_alias",
# "mod_auth",
# "mod_evasive",
"mod_redirect",
"mod_rewrite",
"mod_secdownload",
"mod_flv_streaming",
# "mod_setenv",
# "mod_usertrack",
)
flv-streaming.extensions = ( ".flv" )
12,改动属主为:lighttpd:lighttpd
chrown -R lighttpd:lighttpd /usr/local/lighttpd
chrown -R lighttpd:lighttpd //srv/www/htdocs
chrown -R lighttpd:lighttpd //var/log/lighttpd
13,启动lighttpd,看到以下的输出即成功
[root@host etc]# service lighttpd start
Starting lighttpd:
转载:http://blog.csdn.net/joeyon1985/article/details/39961887
參考:http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd/
linux下lighttpdserver的具体安装步骤 以及对flv流媒体的支持配置的更多相关文章
- ACE-6.1.0 linux 下的编译与安装步骤
ACE-6.1.0 linux 下的编译与安装步骤 引用至http://www.cnblogs.com/liangxiaxu/archive/2013/03/07/2948417.html 1.从 ...
- [整理]Linux下的源码安装步骤及其功能解释
源码的安装一般由3个步骤组成:配置(./configure).编译(make).安装(make install). 这时最常用的命令就是这三个--./configure && make ...
- linux下mysql-5.5.15安装详细步骤
linux下mysql-5.5.15安装详细步骤 注:该文档中用到的目录路径以及一些实际的值都是作为例子来用,具体的目录路径以各自安装时的环境为准 mysql运行时需要一个启动目录.一个安装目录和一个 ...
- 【转】Linux下Android ADB驱动安装详解
原文网址:http://blog.csdn.net/zhenwenxian/article/details/5901350 Linux下Android ADB驱动安装详解 概述 最近由于内置的合作商比 ...
- linux下编译运行TIGL Viewer步骤
linux下编译运行TIGL Viewer步骤(仅为了正确编译安装的话直接跳到步骤3) 1. linux发行版选择:由于linux发行版众多,不同版本包含的库版本可能存在差别,因此需要选择正确的版本. ...
- linux下python3源码安装及卸载
Linux下Python3的源码编译安装和卸载方法 [日期:2019-06-21] 来源:博客园 作者:wuli潇萧 [字体:大 中 小] (一)Linux下软件的源码编译安装和卸载方法 L ...
- linux下常见的包安装方式
linux下常见的包安装方式 一.总结 一句话总结: rpm包安装 tar.gz源代码包安装 yum方式安装rpm包 bin文件安装 1.yum是什么? 安装所有依赖的软件包 Yum(全称为 Yell ...
- Linux课程---14、linux下lamp环境如何安装
Linux课程---14.linux下lamp环境如何安装 一.总结 一句话总结: 要按顺序安装,比如apache需要在php之前安装, 一.安装 gcc 编译器 二.卸载 rpm 安装的 http ...
- Linux下apache+phppgadmin+postgresql安装配置
Linux下apache+phppgadmin+postgresql安装配置 操作系统:CentOS 安装包:httpd(首选yum), php(包括php以及php-pgsql,php-mbstri ...
随机推荐
- 开启CURL扩展,让服务器支持PHP curl函数(远程采集)
关于开启Curl的方法模板天下小编在此给大家简单说一下 curl().file_get_contents().snoopy.class.php这三个远程页面抓取或采集中用到的工具,默迹还是侵向于用sn ...
- [线段树]HDOJ5091 Beam Cannon
题意:给n, w, h (1 <= N <= 10000,1 <= W <= 40000,1 <= H <= 40000) $w\times h$是可以射到的范围 ...
- Log4delphi使用心得
因为delphi不是我的主力开发工具,所有一直没有使用一个正式的日志组件.偶尔要记日志时,就复制同事的一个简单的文件日志函数.现在又要用到delphi日志了,决定找个通用的日志组件,造福共事的Delp ...
- 被IDEA的打包功能打败了:dubbo服务端打包注意事项
下午在搭建一个基于dubbo和spring的服务端项目.结果打包成jar后各种报错. 起初是因为idea的机制,导致META-INF下自己的Mainfest.mf总是莫名被覆盖,于是报找不到主函数.后 ...
- WCF - Hosting WCF Service
After creating a WCF service, the next step is to host it so that the client applications can consum ...
- ERP 及相关名词的含义
英文缩写 英文名称 中文含义 MRP Material requirements planning 物料需求计划 MRP II Manufacturing resource planning 制造 ...
- 同一客户代码下一个CPN对应多个FG会出现CPN描述一样的问题
Q&A : D2E01客户下已经存在CPN: TP1062/A 对应FG: P5M2812512AFHHF0 直接在客户代码下无法新建,只能在交叉信息新建CPN: TP1062/A, 但无法修 ...
- 基于Hadoop Sequencefile的小文件解决方案
一.概述 小文件是指文件size小于HDFS上block大小的文件.这样的文件会给hadoop的扩展性和性能带来严重问题.首先,在HDFS中,任何block,文件或者目录在内存中均以对象的形式存储,每 ...
- 如何修改word的项目编号
在操作word文档时,有时会遇到word文档中的项目编号不是自己需要的,并造成word项目编号的混乱,如何word中的两级项目编号不统一,为解决会word的项目编号混乱问题,小编将教大家如何修改wor ...
- bzoj1069
四边形的问题可以转化为三角形处理穷举对角线,然后处理上下两个三角形,旋转卡壳 ..] of double; q:..] of longint; l,r,i,j,k,t,n:longint; ans:d ...