1、前言
apache+resin來做想來大家都比較熟悉了,一般的配置都是很熟悉的了,我查看了一些論壇上的文章,這方便的文章比較多。在這裡,我只要寫寫apache+resin實現獨立的虛擬機器主機和resin內建的負載平衡。
2、系統和環境:
redhat9 and solaris9
httpd-2.50
resin-3.06
pure-ftpd-1.0.17a.tar.gz
3、安裝軟體:
3.1、安裝apache:
# tar zxvf httpd-2.49.tar.gz
# cd httpd-2.49
# ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=worker
# make
# make install
3.2、安裝resin:
# tar zxvf resin-3.06.tar.gz
# cd resin03.06
# ./configure --prefix=/usr/local/resin --with-apxs=/usr/local/apache2/bin/apxs
# make
# make install
3.3、安裝pureftp
# tar zxvf pure-ftpd-1.0.17a.tar.gz
# cd pure-ftpd-1.0.17a
# ./configure --prefix=/usr/local/pureftpd
--without-inetd --with-puredb
--with-cookie --with-throttling
--with-ratios --with-quotas
--with-ftpwho --with-largefile
--with-welcomemsg
# make
# make install
# mkdir /usr/local/pureftpd/etc
4、配置軟體:
目的:用apache和resin做基於網域名稱的虛擬機器主機,啟用resin自身的負載平衡的引擎。resin的負載平衡引擎實際上是可以啟動多個java響應進程,通過內部機制來進行負載平衡。
4.1、配置apache:
# vi /usr/local/apache2/conf/httpd.conf