|
lighttpd总是不能成功启动运行,在其配置文件lighttpd.conf查看日志文件,路
径/opt/var/log/lighttpd/erroe.log:
2012-03-12 08:03:42: (log.c.166) server started
2012-03-12 08:03:42: (fdevent_linux_sysepoll.c.134) epoll_create failed (Function not
implemented), try to set server.event-handler = "poll" o
2012-03-12 08:03:42: (fdevent.c.41) event-handler linux-sysepoll failed, try to set
server.event-handler = "poll" or "select"
2012-03-12 08:03:42: (server.c.1119) fdevent_init failed
在?
1 去掉# ,"mod_access", "mod_fastcgi",增加 "mod_scgi" )
#vi /opt/etc/lighttpd/lighttpd.conf,修改server.port=8080 ,默认8081,因为有时间会被占用
2 lighttpd.conf 设置 server.event-handler = "poll" 后者 "select",我是poll
3 最后添加
在lighttpd.conf的最后加上
################
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable"
)
)
)
##################
4 绝对路径运行,#/opt/etc/init.d/S80lighttpd start
可以stop,restart
5 #ps 在进程里看到/opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
6 浏览器中192.168.1.10:8080 ,显示 lighttpd server is running.说明lighttpd配置成功! |
|