标签:dubboadmin
本篇博客是继承zookeeper高可用集群写的
1.java环境
[root@zk01 ~]# java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) [root@zk01 ~]#
2.tomcat环境 这个地方暂不优化tomcat
[root@zk01 ~]# cd /opt/ [root@zk01 opt]# ll total 8 drwxr-xr-x 9 root root 149 Dec 25 02:36 apache-tomcat-8.0.27 lrwxrwxrwx 1 root root 11 Dec 25 01:24 jdk -> jdk1.7.0_80 drwxr-xr-x 8 10 143 4096 Apr 11 2015 jdk1.7.0_80 lrwxrwxrwx 1 root root 20 Dec 25 02:37 tomcat -> apache-tomcat-8.0.27 drwxr-xr-x 2 root root 95 Dec 25 02:37 tools lrwxrwxrwx 1 root root 15 Dec 25 01:29 zk01 -> zookeeper-3.4.9 drwxr-xr-x 12 1001 1001 4096 Dec 25 01:39 zookeeper-3.4.9 [root@zk01 opt]#
3.解压war包到tomcat的站点目录
[root@zk01 ROOT]# pwd /opt/tomcat/webapps/ROOT unzip dubbo-admin-2.5.3.war
4.修改dubbo 的配置文件
[root@zk01 WEB-INF]# pwd /opt/tomcat/webapps/ROOT/WEB-INF [root@zk01 WEB-INF]# cat dubbo.properties dubbo.registry.address=zookeeper://192.168.56.15:2181?backup=192.168.56.16:2182,192.168.56.17:2181 #zookeeper的地址 dubbo.admin.root.password=123456 #root 123456 dubbo.admin.guest.password=123456 #生产场景吧此处干掉 guest 123456 [root@zk01 WEB-INF]#
5.启动tomcat服务
[root@zk01 bin]# pwd /opt/tomcat/bin [root@zk01 bin]# ./startup.sh Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: /opt/jdk Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar Tomcat started.
6.浏览dubbo服务
http://192.168.56.15:8080 #本机Ip:tomcat端口
over
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1885825
标签:dubboadmin
原文地址:http://wsxxsl.blog.51cto.com/9085838/1885825