dubbo-admin编译及部署

官网:http://dubbo.apache.org/
Github:https://github.com/apache/incubator-dubbo
Release:https://github.com/alibaba/dubbo/releases

dubbo-admin编译打包

注意:dubbo-2.6.1及以后的版本不再有dubbo-admin,可下载dubbo-2.6.0版本

https://github.com/apache/incubator-dubbo/tree/dubbo-2.6.0
https://github.com/apache/incubator-dubbo/archive/dubbo-2.6.0.tar.gz

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# tar -zxf dubbo-2.6.0.tar.gz
# cd incubator-dubbo-dubbo-2.6.0/
# cd dubbo-admin/
# mvn package -Dmaven.skip.test=true
...
[INFO] Packaging webapp
[INFO] Assembling webapp [dubbo-admin] in [/root/dubbo/incubator-dubbo-dubbo-2.6.0/dubbo-admin/target/dubbo-admin-2.6.0]
[INFO] Processing war project
[INFO] Copying webapp resources [/root/dubbo/incubator-dubbo-dubbo-2.6.0/dubbo-admin/src/main/webapp]
[INFO] Webapp assembled in [496 msecs]
[INFO] Building war: /root/dubbo/incubator-dubbo-dubbo-2.6.0/dubbo-admin/target/dubbo-admin-2.6.0.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:11 min
[INFO] Finished at: 2018-05-03T14:10:23+08:00
[INFO] ------------------------------------------------------------------------

dubbo-admin部署及域名配置

域名配置

1
vim /usr/local/tomcat85/conf/server.xml
1
2
3
4
5
6
<Host name="dubbo.yezhou.me" appBase="/data/www/dubbo"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
<Context docBase="" path="/" reloadable="true" crossContext="true" ></Context>
<!--Context docBase="./admin" path="/admin/" reloadable="true" crossContext="true" ></Context-->
</Host>

war包部署

1
2
3
4
5
6
7
8
9
# mkdir /data/www/dubbo
# chown www -R /data/www/dubbo/
# cp /root/dubbo/incubator-dubbo-dubbo-2.6.0/dubbo-admin/target/dubbo-admin-2.6.0.war /data/www/dubbo/
# /usr/local/tomcat85/bin/shutdown.sh
# /usr/local/tomcat85/bin/startup.sh
# cd /data/www/dubbo/
# cp -R dubbo-admin-2.6.0/* ./
# rm -rf dubbo-admin-2.6.0
# chown www -R ./

修改账号密码

1
# vim WEB-INF/dubbo.properties
1
2
3
4
5
6
# 和ZooKeeper注册中心<dubbo:registry address="zookeeper://127.0.0.1:2181" />中的保持一致
dubbo.registry.address=zookeeper://127.0.0.1:2181
# root用户密码
dubbo.admin.root.password=123456
# guest用户密码
dubbo.admin.guest.password=123456

域名访问

访问地址:http://dubbo.yezhou.me:8080/

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :