标签:
准备条件:
a,创建/usr/local/lighttpd文件夹,用于安装lighttpd
b,创建lighttpd用户password为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
[root@host lighttpd]# tar -zxvf lighttpd-1.4.35
[root@host lighttpd-1.4.35]# cd lighttpd-1.4.35 [root@host lighttpd-1.4.35]# ./configure --prefix=/usr/local/lighttpd [root@host lighttpd-1.4.35]# make [root@host lighttpd-1.4.35]# make install
[root@host lighttpd-1.4.35]# mkdir -p /srv/www/htdocs/
5,复制配置文件到etc文件夹命令例如以下
[root@host lighttpd]# cp - p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d /usr/local/lighttpd/etc
6,创建日志输出文件夹
[root@host lighttpd]# mkdir - p /var/log/lighttpd
7,改动启动关闭重新启动配置
cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/lighttpd8,然后改动/etc/init.d/lighttpd,把
9,进入文件夹/usr/local/lighttpd/etc。改动lighttpd.conf的var.log_root的值为"/var/log/lighttpd"
10,改动lighttpd的ipport信息
server.port = 8080 ## ## Use IPv6? ## server.use-ipv6 = "disable" ## ## bind to a specific IP ## server.bind = "192.168.10.1"
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/lighttpd chrown -R lighttpd:lighttpd //srv/www/htdocs chrown -R lighttpd:lighttpd //var/log/lighttpd
[root@host etc]# service lighttpd start Starting lighttpd:
转载:http://blog.csdn.net/joeyon1985/article/details/39961887
參考:http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd/
linux下lighttpdserver的具体安装步骤 以及对flv流媒体的支持配置
标签:
原文地址:http://www.cnblogs.com/yxwkf/p/5347845.html