博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
搭建Tomcat与lighttpd环境
阅读量:4601 次
发布时间:2019-06-09

本文共 850 字,大约阅读时间需要 2 分钟。

· 安装pcre

 http://sourceforge.net/projects/pcre/files/pcre/

· 安装lighttpd

shell> tar zxvf lighttpd-1.4.33.tar.gz
shell> cd lighttpd-1.4.33
shell> ./configure –prefix=/usr/local/lighttpd
shell> ./make
shell> ./make install
shell> cp doc/initscripts/rc.lighttpd /etc/rc.d/init.d/lighttpd
shell> cp doc/initscripts/sysconfig.lighttpd /etc/sysconfig/lighttpd
shell> mkdir /etc/lighttpd
shell> cp -r doc/config /etc/lighttpd
shell> chkconfig lighttpd on

· 配置lighttpd

修改/etc/rc.d/init.d/lighttpd的LIGHTTPD_BIN的值如下
LIGHTTPD_BIN=”/usr/local/lighttpd/sbin/lighttpd”
打开/etc/lighttpd/lighttpd.conf
修改服务的端口
设置代理
$HTTP["url"] =~ "^/test/(.+)?$" {
proxy.server = (
                   "" => (
                              (
                                   "host" => "127.0.0.1",
                                   "port" => 10002
                              )
                          )
               )
}
配置home目录
打开/etc/lighttpd/modules.conf
使能"mod_proxy"

· 运行lighttpd

shell> service lighttpd start

转载于:https://www.cnblogs.com/easynote/p/3476475.html

你可能感兴趣的文章
JavaScript将具有父子关系的原始数据格式化成树形结构数据(id,pid)
查看>>
MySQL服务使用
查看>>
C语言练手自己编写学生成绩管理系统
查看>>
20175204 张湲祯 2018-2019-2《Java程序设计》第二周学习总结
查看>>
How to lisp Lisp output a paragraph"500 Tph Dry Process Cement Plant Machinery Manufacturers"
查看>>
OpenMobile's Application Compatibility Layer (ACL)
查看>>
竞价广告系统-广告检索
查看>>
强哥PHP面向对象学习笔记
查看>>
[转]基于.NET平台常用的框架整理
查看>>
Symbian (Read Inbox)读取收件箱的内容
查看>>
良好的编程规范
查看>>
struts2 入门
查看>>
.net 编译原理
查看>>
mean 快速开发和现有技术的对比分析
查看>>
Metro Style app :浏览器扩展
查看>>
linux的kernel是怎样工作的(TI_DM36X_ARM系统)(1)
查看>>
[luogu4310] 绝世好题 (递推)
查看>>
[luogu3203 HNOI2010] 弹飞绵羊 (分块)
查看>>
-Dmaven.multiModuleProjectDirectory system propery is not set.
查看>>
Python2 unichr() 函数
查看>>