Detailed installation steps for Linux LIGHTTPD server and support configuration for FLV streaming media

Source: Internet
Author: User

Preparation conditions:

A, create the/USR/LOCAL/LIGHTTPD directory to install the LIGHTTPD

b, create lighttpd user password for lighttpd account, for LIGHTTPD start-up 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 (currently 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 directory, for storing files such as HTML

[Email protected] lighttpd-1.4.35]# mkdir-p/srv/www/htdocs/

5, copy the configuration file to the ETC Directory command as follows

[Email protected] lighttpd]# cp-p  /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d  


6. Create Log output Directory

[Email protected] lighttpd]# mkdir-p/var/log/lighttpd

7. Modify Startup Shutdown Restart configuration

CP DOC/INITSCRIPTS/RC.LIGHTTPD.REDHAT/ETC/INIT.D/LIGHTTPD
8, then modify the/ETC/INIT.D/LIGHTTPD, put
Lighttpd= "/USR/SBIN/LIGHTTPD"
Switch
Lighttpd= "/USR/LOCAL/LIGHTTPD/SBIN/LIGHTTPD"

9, go to directory/usr/local/lighttpd/etc, modify the value of lighttpd.conf var.log_root to "/VAR/LOG/LIGHTTPD"

10. Modify IP port information for LIGHTTPD

Server.port = 8080#### Use ipv6?# #server. Use-ipv6 = "Disable" # # bind to a specific ip# #server. Bind = "192.168.10.1"

11, modify the modules.conf file, to support the FLV pseudo-flow mode, modified as follows

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, modify the owner to: 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


Reference: http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd/


Detailed installation steps for Linux LIGHTTPD server and support configuration for FLV streaming media

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.