centos 6.4 Apache 配置 flv mp4.h264 流媒体拖动
http://blog.csdn.net/xst686/article/details/9763995
加入流媒体扩展后要重启 httpd
flv 流媒体
|
1
2
|
wgethttp://people.apache.org/~pquerna/modules/mod_flvx.c
/usr/local/apache/bin/apxs-c-i mod_flvx.c
|
httpd.conf 加入
|
1
2
|
LoadModuleflvx_module modules/mod_flvx.so
AddHandler flv-stream.flv
|
mp4 流媒体
|
1
2
3
4
5
6
|
wgethttp://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvfapache_mod_h264_streaming-*.tar.gz
cd apache_mod_h264_streaming-*
./configure--with-apxs=/usr/local/apache/bin/apxs
make
make install
|
httpd.conf 加入
|
1
2
|
LoadModuleh264_streaming_module modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions.mp4
|
配置Nginx、Apache服务器支持flv流媒体拖动播放
http://www.php1.cn/article/59985.html
nginx下配置flv拖动
首先,下载nginx源码包,以0.8.54版本为例
wget http://nginx.org/download/nginx-0.8.54.tar.gz
重编译之前,停掉nginx服务。查看一下nginx原来的编译参数
/usr/local/nginx/sbin/nginx ?V
在原来的参数基础上添加flv的支持
0.8.54版本为例,进行编译
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-http_flv_module
make && make install
编译完成后,在nginx.conf文件里添加flv支持
location ~ \.flv$ {
flv;
}
启动nginx,使用curl ?I 来查看是否成功。
主要查看的是 Content-Length的数值。和加上参数start 之后进行对比。
例如:
curl -I http://video.zhangyuc.com/flv/110718/video.flv
Content-Length: 1218888
对比
curl -I http://video.zhangyuc.com/flv/110718/video.flv?<strong>start=12345</strong>
Content-Length: 1206556
以上示例只列出Content-Length的值。
假如加上参数之后,Content-Length值依旧和之前相同,则表示配置没有成功
apache下配置flv拖动
Windows服务器下配置拖动,一共需要两步
第一步,下载mod_flvx.so并放到apache目录下的modules文件夹下
下载地址:
http://www.mosalov.com/files/mod_flvx.so
第二步,在apache的配置文件中,添加以下内容,重启apache服务
LoadModule flvx_module modules/mod_flvx.so
AddHandler flv-stream .flv
linux服务器下配置拖动,需要下载mod_flvx.c文件后进行编译
第一步,下载mod_flvx.c,并进行编译。
wget https://github.com/osantana/mod_flvx/blob/master/mod_flvx.c
使用apxs进行编译,编译前,请检查apxs版本
apxs -c -i ./mod_flvx.c
第二步,在apache的conf.d目录下创建mod_flvx.conf文件,并写入以下内容
LoadModule flvx_module /usr/lib/apache2/modules/mod_flvx.so
AddHandler flv-stream .flv
配置完成后重启即可
centos 6.4 Apache 配置 flv mp4.h264 流媒体拖动的更多相关文章
- centos 6.5 apache配置web应用&防火墙设置(入门级)
硬件:centos 6.5 服务器 , Dell R420 , 两个网口,一个给公网,一个给内网. 软件:apache 2.2 配置了virtualhost以后,用curl在本地可以访问.但是其他机器 ...
- CentOS 5上Apache配置虚拟主机范例
昨天实践了下在CentOS 5上通过Apache直接配置虚拟主机,服务器没有安装面板软件,所以只能通过SSH远程连接操作了.Apache安装在/etc/httpd目录下,这个即是Apache的根目录, ...
- nginx+jwplayer配置flv/MP4点播系统, 视频拖动支持
一 配置nginx 1. 下载 nginx 最新版 http://nginx.org/ 2. 安装依赖库, 以ubuntu为例 apt-get install libpcre3 libpcre3-de ...
- CentOS下的apache配置支持php
修改Apache的配置文件httpd.conf(vi /etc/httpd/conf/httpd.conf) DirectoryIndex index.html index.php #添加index. ...
- centos LAMP第二部分apache配置 下载discuz!配置第一个虚拟主机 安装Discuz! 用户认证 配置域名跳转 配置apache的访问日志 配置静态文件缓存 配置防盗链 访问控制 apache rewrite 配置开机启动apache tcpdump 第二十节课
centos LAMP第二部分apache配置 下载discuz!配置第一个虚拟主机 安装Discuz! 用户认证 配置域名跳转 配置apache的访问日志 配置静态文件缓存 配置防盗链 ...
- CentOS 6.6安装配置LAMP服务器(Apache+PHP5+MySQL)
准备篇: CentOS 6.6系统安装配置图解教程 http://www.osyunwei.com/archives/8398.html 1.配置防火墙,开启80端口.3306端口 vi /etc/s ...
- CentOS下Apache配置多域名或者多端口映射
CentOS下Apache默认网站根目录为/var/www/html,假如我默认存了一个CI项目在html文件夹里,同时服务器的外网IP为ExampleIp,因为使用的是MVC框架,Apache需开启 ...
- CentOS 7.0系统安装配置LAMP服务器(Apache+PHP+MariaDB)
CentOS 7.0接触到的用户是比较少的,今天看了站长写了一篇关于centos7中安装配置LAMP服务器的教程,下面我把文章稍加整理一下转给大家学习交流,希望例子能给各位带来帮助哦. cento ...
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
这篇文章主要介绍了CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)的方法,需要的朋友可以参考下 文章写的不错,很详细:IDO转载自网络: 准备篇: 1.配置防火墙,开启 ...
随机推荐
- python 使用__slots__
正常情况下,当我们定义了一个class,创建了一个class的实例后,我们可以给该实例绑定任何属性和方法,这就是动态语言的灵活性.先定义class: >>> class Studen ...
- hdoj 1856 More is better【求树的节点数】
More is better Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 327680/102400 K (Java/Others) ...
- android http 通信(httpclient 实现)
1.httpclient get 方式 HttpGet httpGet = new HttpGet(url); HttpClient client = new DefaultHttpClient(); ...
- sublime Text 3的默认快捷键大全
Ctrl+M 光标跳至对应的括号 Alt+. 闭合当前标签 Ctrl+Shift+A 选择光标位置父标签对儿 Ctrl+Shift+[ 折叠代码 Ctrl+Shift+] 展开代码 Ctrl+KT 折 ...
- Winform- DotNetBar for Windows Forms的安装的添加
Winform界面不好看,偶尔在网上看到winform的界面美化,对比了一下选择了DotNetBar for Windows Forms 1.破解版网上很多,提供一个参考的下载地址http://dx. ...
- IOS开发之 ---- 苹果系统代码汉字转拼音
NSString *hanziText = @"我是中国人"; if ([hanziText length]) { NSMutableString *ms = [[ ...
- windows7下硬盘安装ubuntu14.04
windows7 ubuntu1404双系统 准备软件 安装步骤 step 1 step 2 step 3 step 4 windows7 + ubuntu14.04双系统 准备软件 1)grub4d ...
- 并行编程之多线程共享非volatile变量,会不会可能导致线程while死循环
背景 大家都知道线程之间共享变量要用volatilekeyword.可是,假设不用volatile来标识,会不会导致线程死循环?比方以下的伪代码: static int flag = -1; void ...
- nginx,linux压力测试工具webbench
webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便. 1.适用系统:Linux 2.编译安装: 1. wget htt ...
- nginx学习七 高级数据结构之动态数组ngx_array_t
1 ngx_array_t结构 ngx_array_t是nginx内部使用的数组结构.nginx的数组结构在存储上与大家认知的C语言内置的数组有相似性.比方实际上存储数据的区域也是一大块连续的内存. ...