linux下lighttpd伺服器的詳細安裝步驟 以及對flv流媒體的支援配置

來源:互聯網
上載者:User

標籤:blog   http   io   os   ar   for   檔案   sp   2014   

 準備條件:

a,建立/usr/local/lighttpd目錄,用於安裝lighttpd

b,建立lighttpd使用者密碼為lighttpd帳號,用於lighttpd的啟動使用者

c,安裝prce軟體包,Perl相容的規則運算式庫. http://sourceforge.net/projects/pcre/files/pcre/7.7/pcre-7.7.tar.gz/download


1,首先去官網http://www.lighttpd.net/下載對應的安裝檔案(目前最新1.4.35)。

 wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.35.tar.gz

2,解壓安裝包 lighttpd-1.4.35.tar.gz

[[email protected] lighttpd]# tar -zxvf lighttpd-1.4.35

3,編譯lighttpd安裝檔案

[[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,建立www目錄,用於存放html等檔案

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

5,複製設定檔到etc目錄命令如下

[[email protected] lighttpd]# cp - p  /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d  /usr/local/lighttpd/etc 


6,建立日誌輸出目錄

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

7,修改啟動關閉重啟配置

cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/lighttpd
8,然後修改/etc/init.d/lighttpd,把
lighttpd="/usr/sbin/lighttpd"
改為
lighttpd="/usr/local/lighttpd/sbin/lighttpd"

9,進入目錄/usr/local/lighttpd/etc,修改lighttpd.conf的var.log_root的值為"/var/log/lighttpd"

10,修改lighttpd的ip連接埠資訊

server.port = 8080#### Use IPv6?##server.use-ipv6 = "disable"#### bind to a specific IP##server.bind = "192.168.10.1"

11,修改 modules.conf檔案,用來支援flv偽流模,改後如下

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,修改屬主為:lighttpd:lighttpd

chrown -R lighttpd:lighttpd /usr/local/lighttpdchrown -R lighttpd:lighttpd //srv/www/htdocschrown -R lighttpd:lighttpd //var/log/lighttpd


13,啟動lighttpd,看到下面的輸出即成功
[[email protected] etc]# service lighttpd startStarting lighttpd:



轉載:http://blog.csdn.net/joeyon1985/article/details/39961887


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


linux下lighttpd伺服器的詳細安裝步驟 以及對flv流媒體的支援配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.