lighttpd+resin 负载均衡

来源:互联网 发布:免费的中国象棋软件 编辑:程序博客网 时间:2024/06/05 17:30

1.Lighttpd:

下载最新版本:

wget http://www.lighttpd.net/download/lighttpd-1.4.16.tar.gz

tar zxvf lighttpd-1.4.16.tar.gz

cd lighttpd-1.4.16

./configure --prefix=/usr/local/lighttpd1416

make

make install

cp doc/rc.lighttpd.redhat /etc/rc.d/init.d/lighttpd

cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd

mkdir /etc/lighttpd

cp doc/lighttpd.conf /usr/local/lighttpd1416/conf/lighttpd.conf

chkconfig lighttpd on

接下来打开/etc/rc.d/init.d/lighttpd修改lighttpd的值如下

LIGHTTPD_CONF_PATH="/usr/local/lighttpd1416/conf/lighttpd.conf"

lighttpd="/usr/local/lighttpd1416/sbin/lighttpd"

vi /etc/sysconfig/lighttpd

LIGHTTPD_CONF_PATH=/usr/local/lighttpd1416/conf/lighttpd.conf

shell> service lighttpd start

更多关于lighttpd的配置请看lighttpd的文档

2:resin的cluster配置

下载Resin,tar zxvf resin.*.*.tar.gz

Cd resin

./configure –prefix=/usr/local/resin

Make&&make install

Vi resin.conf

-Dcom.sun.management.jmxremote

6604

50

-Xmx256m

-XX:MaxPermSize=64m

-Xdebug

-Xnoagent

-Djava.compiler=NONE

-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999

Resin 启动命令 :bin/httpd.sh –server space start|stop|restart

原创粉丝点击