文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>安装启动lighttpd

安装启动lighttpd

时间:2008-12-24  来源:zhongyj

参考 http://blog.chinaunix.net/u1/55815/showart_544852.html http://redmine.lighttpd.net/wiki/lighttpd/TutorialConfiguration 下载 lighttpd-1.4.20.tar 解压 tar xvf lighttpd-1.4.20.tar 到lighttpd-1.4.20目录 ./configure --prefix=/userhome/zhongyj/sfw/lighttpd make make install 已经安装到/userhome/zhongyj/sfw/lighttpd目录 /userhome/zhongyj/sfw/lighttpd>mkdir logs
/userhome/zhongyj/sfw/lighttpd>mkdir html
创建配置文件 /userhome/zhongyj/sfw/lighttpd/sbin>vi lighttpd.conf
server.port = 3000
server.modules = (
                        "mod_access",
                        "mod_accesslog" )
server.document-root = "/userhome/zhongyj/sfw/lighttpd/html/"
server.errorlog = "/userhome/zhongyj/sfw/lighttpd/logs/error.log"
server.pid-file = "/userhome/zhongyj/sfw/lighttpd/lighttpd.pid"
index-file.names = ( "index.html" )
mimetype.assign = (
                        ".html" => "text/html",
                        ".js" => "text/javascript")
server.max-keep-alive-requests = 4000
dir-listing.activate = "disable"
  accesslog.filename = "/userhome/zhongyj/sfw/lighttpd/logs/access.log" 创建html测试文件 /userhome/zhongyj/sfw/lighttpd/html>vi index.html
<body>
hello lighttpd
</body>
启动服务 /userhome/zhongyj/sfw/lighttpd/sbin>lighttpd -D -f lighttpd.conf 打开网页 http://127.0.0.1:3000/ 这里172.0.0.1是本机,也可以在其他机器指定这个机器的IP
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载