本文详细介绍apache+resin 的虚拟主机和负载均衡
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
责编:豆豆技术应用
- Photoshop照片合成教程:丛林中的光线
- Photoshop教程之调色打造天使美女
- PS很简单就可以为照片添加抽丝效果
- Photoshop制作震撼人心的烈火勇士画面
- Photoshop鼠绘清爽玉兰油柔肤水
- Photoshop调色教程:古典韵味的MM照片
- Photoshop教程:介绍汽车的鼠绘方法
- Photoshop调色教程:青色调MM照片
- Photoshop鼠绘:游戏中打BOSS的场景
- Photoshop打造金色咖啡特效壁纸
- SSL证书请求文件(CSR)生成指南 - Zeus
- F5和Zeus负载均衡各具特色
- Zeus实现XML-JAVA的数据绑定
- FreeBSD 6.x下安装Zeus Web Server
- Zeus另一种可供选择的Web服务器
- 在Zeus Web Server中安装PHP语言支持
- Zeus 4.3 For Freebsd安装指南
- CentOS下Zeus 4.3r3的安装及基本配置
- 在Exchange 2007中使用多主机名称证书
- Exchange 2003 OWA加密设置