0
到/usr/ports/www/lighttpd下面make install clean

装后需要一个配置文件,可以先用默认的。
cp /usr/local/etc/lighttpd.conf.sample /usr/local/etc/lighttpd.conf
然后用
echo lighttpd_enable=\"YES\" >> /etc/rc.conf (是>>不是>,千万别错了,非常重要,如果不设置,将无法启动,这是FreeBSD的安全因素,很喜欢哈哈)
/usr/local/etc/rc.d/lighttpd start
第一次启动,可能会碰上一些问题。

引用

freebsd# echo lighttpd_enable=\"YES\" >> /etc/rc.conf
freebsd# ./lighttpd start
Starting lighttpd.
freebsd# 2008-06-18 17:17:43: (mod_accesslog.c.514) opening access-log failed: Permission denied /var/log/lighttpd.access.log
2008-06-18 17:17:43: (server.c.828) Configuration of plugins failed. Going down.

freebsd# chown www /var/log/lighttpd.access.log
chown: /var/log/lighttpd.access.log: No such file or directory
freebsd# chown www /var/log/lighttpd.error.log
freebsd# ./lighttpd start
Starting lighttpd.
freebsd# 2008-06-18 17:18:25: (mod_accesslog.c.514) opening access-log failed: Permission denied /var/log/lighttpd.access.log
2008-06-18 17:18:25: (server.c.828) Configuration of plugins failed. Going down.

freebsd#
freebsd# touch /var/log/lighttpd.access.log
freebsd# chmod 666 /var/log/lighttpd.access.log
freebsd# chown www /var/log/lighttpd.access.log
freebsd# ./lighttpd start
Starting lighttpd.


Tags: , | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]