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
# 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部署及域名配置
域名配置
vim /usr/local/tomcat85/conf/server.xml
<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包部署
# 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 ./
修改账号密码
# vim WEB-INF/dubbo.properties
# 和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
域名访问
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/26/dubbo-admin-compile-and-deploy/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
dubbo-admin编译及部署
官网:http://dubbo.apache.org/
Github:https://github.com/apache/incubator-dubbo
Release:https://github.com/alibaba/dubbo/releases
dubbo-admin编译……
文章目录
关闭
共有 0 条评论