Gentoo:
* Use emerge to install Apache
Emerge Apache
* Compile and install the h264 Module
CD/tmp
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
D/tmp/mod_h264_streaming-2.2.7
./Configure -- With-apxs = 'which apxs2'
Make
Make install
* Modify the Apache configuration file/etc/Apache/httpd. conf.
Loadmodule hsf-_streaming_module/usr/lib/apache2/modules/mod_hsf-_streaming.so
Addhandler h264-streaming.extensions. MP4
* Enable Apache
/Etc/init. d/Apache start
Centos5.5:
* Configure the yum Source
Modify/etc/yum. Repos. d/CentOS-Base.repo
[Base]
Name = centos-$ releasever-Base
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Released updates
[Updates]
Name = centos-$ releasever-Updates
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Packages used/produced in the build but not released
[Addons]
Name = centos-$ releasever-Addons
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = Addons
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/addons/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = centos-$ releasever-plus
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
* Install Apache
Yum install httpd
* Install the Apache advanced environment
Yum install httpd-devel
* Compile and install the h264 Module
CD/tmp
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
D/tmp/mod_h264_streaming-2.2.7
./Configure -- With-apxs = 'which apxs2'
Make
Make install
* Modify the Apache configuration file/etc/httpd/CONF/httpd. conf and add
Loadmodule hsf-_streaming_module/usr/lib/httpd/modules/mod_hsf-_streaming.so
Addhandler h264-streaming.extensions. MP4
* Start Apache
Service httpd restart