This blog is written by inheriting zookeeper high-availability clusters
1.java Environment
[[email protected] ~]# java-version java version "1.7.0_80" Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java Hots Pot (TM) 64-bit Server VM (build 24.80-b11, Mixed mode) [[email protected] ~]#
2.tomcat environment This place is temporarily not optimized for Tomcat
[[email protected] ~]# cd /opt/[[email protected] opt]# lltotal 8drwxr-xr-x 9 root root 149 dec 25 02:36 apache-tomcat-8.0.27lrwxrwxrwx 1 root root 11 dec 25 01:24 jdk -> jdk1.7.0_80drwxr-xr-x 8 10 143 4096 Apr 11 2015 jdk1.7.0_80lrwxrwxrwx 1 root root 20 dec 25 02:37 tomcat -> apache-tomcat-8.0.27drwxr-xr-x 2 root root 95 Dec 25 02:37 toolslrwxrwxrwx 1 root root 15 dec 25 01:29 zk01 -> zookeeper-3.4.9drwxr-xr-x 12 1001 1001 4096 dec 25 01:39 zookeeper-3.4.9[[email protected] opt]#
3. Unzip the war package to the Tomcat site Directory
[Email protected] root]# Pwd/opt/tomcat/webapps/rootunzip Dubbo-admin-2.5.3.war
4. Modify the Dubbo configuration file
[Email protected] web-inf]# Pwd/opt/tomcat/webapps/root/web-inf[[email protected] 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 address dubbo.admin.root.password=123456 #root 123456dubbo.admin.guest.password=123456 #生产场景吧此处干掉 Guest 123456[ [Email protected] web-inf]#
5. Start the Tomcat service
[Email protected] bin]# Pwd/opt/tomcat/bin[[email protected] bin]#./startup.sh Using catalina_base:/opt/tomcatusing Catalina_home:/opt/tomcatusing catalina_tmpdir:/opt/tomcat/tempusing jre_home:/opt/jdkusing CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jartomcat started.
6. Browse Dubbo Services
http://192.168.56.15:8080 #本机Ip: Tomcat Port
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/FE/wKiom1heVPuwHhzrAAAjZUzKBfs001.png-wh_500x0-wm_3 -wmp_4-s_1597431311.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1hevpuwhhzraaajzuzkbfs001.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/FE/wKiom1heVPyzVx9gAADyxZPvzmQ512.png-wh_500x0-wm_3 -wmp_4-s_1722484518.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1hevpyzvx9gaadyxzpvzmq512.png-wh_50 "/>
Over
This article is from the "Brick Blog" blog, please be sure to keep this source http://wsxxsl.blog.51cto.com/9085838/1885825
Deployment of Dubboadmin