Tomcat实现反向代理、负载均衡、内存复制-----部署JspRun测试
或许一个简单的测试页面不能满足你的胃口,那我们部署个论坛吧
3.1 下载安装 JspRun
(下载地址:http://www.jsprun.com/downloads/JspRun/6.0.0/JspRun!_6.0.0_GBK.zip)
1.unzip JspRun\!_6.0.0_GBK.zip
2.mv upload/ /web/jsprun
3.2 编辑/usr/local/tomcat/conf/tomcat-users.xml 再添加一虚拟主机
1.<Hostname="jsprun.linuxidc.com"appBase="/web/jsprun"
2.unpackWARs="true"autoDeploy="true">
3.<Contextpath=""docBase="/web/jsprun"/>
4.</Host>
3.3 编辑windows的hosts,添加解析
1.172.16.1.22 jsprun.linuxidc.com
3.4 安装Mysql,因为该jsprun需要,为了简单yum 安装吧
1.yum -y install mysql-server
2.service mysqld start
3.5 为jsprun建立账号
1.mysql
2.mysql> create database jsprun;
3.mysql> grant all on jsprun.* to 'jsprun'@'localhost' identified by 'RedHat';
4.mysql> flush privileges;
3.6 编缉jsprun的配置文件,修改mysql以下信息
1.dbhost = localhost
2.dbport=3306
3.dbuser = jsprun
4.dbpw = redhat
5.dbname = jsprun
3.7 访问http://jsprun.linuxidc.com:8080/install.jsp 安装
根据提示安装即可