为Apache添加MP4扩展
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| #安装库
$sudo apt-get install apache2-threaded-dev
#下载软件包
$cd ~
$wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
$tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
#编译安装软件包
$cd ~/mod_h264_streaming-2.2.7
$./configure --with-apxs=`which apxs2`
$make
$sudo make install
#编辑apache设置
$sudo vim /etc/apache2/httpd.conf
#添加下面内容
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4
#重启
$sudo /etc/init.d/apache2 restart |
#安装库
$sudo apt-get install apache2-threaded-dev
#下载软件包
$cd ~
$wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
$tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
#编译安装软件包
$cd ~/mod_h264_streaming-2.2.7
$./configure --with-apxs=`which apxs2`
$make
$sudo make install
#编辑apache设置
$sudo vim /etc/apache2/httpd.conf
#添加下面内容
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4
#重启
$sudo /etc/init.d/apache2 restart
一条评论
so good!