CENTOS 按装 dubbo--admin

1,下载

Releases · apache/dubbo-admin · GitHub

https://github.com/apache/dubbo-admin/archive/refs/tags/0.6.0.tar.gz

2,配置

解压文件,编辑项目配置文件dubbo-admin-server/src/main/resources/application.properties

# dubbo-admin-server/src/main/resources/application.properties
server.port=38080
dubbo.protocol.port=30880
dubbo.application.qos-port=32222

admin.registry.address=zookeeper://127.0.0.1:2181
admin.config-center=zookeeper://127.0.0.1:2181
admin.metadata-report.address=zookeeper://127.0.0.1:2181

admin.root.user.name=root
admin.root.user.password=root

3,安装

打包项目

mvn clean package -Dmaven.test.skip=true

找到项目文件

dubbo-admin/dubbo-admin-server/target/dubbo-admin-server-0.6.0.jar

按照普通jar项目发布启动即可

4,启动

# 启动脚本名称:startup.sh
#!/bin/bash
BUILD_ID=dontKillMe 
nohup java -jar dubbo-admin-server-0.6.0.jar > /dev/null 2>&1 &
# 增加文件执行权限
chmod +x startup.sh

# 启动
./startup.sh

5,访问地址

http://:38080

你可能感兴趣的:(centos,dubbo,linux)