Preparation conditions:
A, create the/USR/LOCAL/LIGHTTPD folder to install the LIGHTTPD
b, create lighttpd user password as lighttpd account for lighttpd startup user
C, install the Prce package, a Perl-compatible rule expression Library. Http://sourceforge.net/projects/pcre/files/pcre/7.7/pcre-7.7.tar.gz/download
1, first to the official website http://www.lighttpd.net/download the corresponding installation files (now the latest 1.4.35).
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.35.tar.gz
2, unzip the installation package lighttpd-1.4.35.tar.gz
[Email protected] lighttpd]# TAR-ZXVF lighttpd-1.4.35
3, compiling the LIGHTTPD installation file
[Email protected] lighttpd-1.4.35]# CD Lighttpd-1.4.35[[email protected] lighttpd-1.4.35]#./configure--prefix=/usr/ Local/lighttpd[[email protected] lighttpd-1.4.35]# Make[[email protected] lighttpd-1.4.35]# make install
4, create WWW folder, for storing HTML and other files
[Email protected] lighttpd-1.4.35]# mkdir-p/srv/www/htdocs/
5, copy the configuration file to etc folder commands such as the following
[Email protected] lighttpd]# cp-p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d
6. Create Log output folder
[Email protected] lighttpd]# mkdir-p/var/log/lighttpd
7, change start shutdown restart configuration
CP DOC/INITSCRIPTS/RC.LIGHTTPD.REDHAT/ETC/INIT.D/LIGHTTPD
8, then change the/etc/init.d/lighttpd, put
Lighttpd= "/USR/SBIN/LIGHTTPD"
Switch
Lighttpd= "/USR/LOCAL/LIGHTTPD/SBIN/LIGHTTPD"
9, go to Folder/usr/local/lighttpd/etc. Change the value of lighttpd.conf var.log_root to "/VAR/LOG/LIGHTTPD"
10, change the ipport information of LIGHTTPD
Server.port = 8080#### Use ipv6?# #server. Use-ipv6 = "Disable" # # bind to a specific ip# #server. Bind = "192.168.10.1"
11, change the modules.conf file, to support the FLV pseudo-flow mode, such as the following
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, change the owner is: lighttpd:lighttpd
Chrown-r lighttpd:lighttpd/usr/local/lighttpdchrown-r lighttpd:lighttpd//srv/www/htdocschrown-r lighttpd:lighttpd Var/log/lighttpd
13, start lighttpd, see the following output is successful
[Email protected] etc]# service lighttpd startstarting lighttpd:
Reprint: http://blog.csdn.net/joeyon1985/article/details/39961887
References: http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd/
Specific installation steps for Linux under Lighttpdserver and support configuration for FLV streaming media