dubbo-admin安装步骤

环境要求

1 安装了maven
2 安装了git 工具:yum install git(centOS 7)
3 安装了zookeeper

执行步骤

步骤1 下载代码
cd /usr/local/cloud/test/
git clone https://github.com/apache/incubator-Dubbo-ops
如下:

  1. [root@iZ2zealvrswoly7z49qugmZ temp]# git clone
    https://github.com/apache/incubator-Dubbo-ops Cloning into
    ‘incubator-Dubbo-ops’… remote: Enumerating objects: 8946, done.
    remote: Counting objects: 100% (433/433), done. remote: Compressing
    objects: 100% (236/236), done. remote: Total 8946 (delta 161),
    reused 321 (delta 108), pack-reused 8513 Receiving objects: 100%
    (8946/8946), 13.94 MiB | 7.62 MiB/s, done. Resolving deltas: 100%
    (4734/4734), done.

步骤2 配置参数:application.properties

  • cd
    /usr/local/cloud/test/dubbo-admin/incubator-Dubbo-ops/dubbo-admin-server/src/main/resources
    vim application.properties增加下面内容

配置zookeeper信息

  • 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
    #dubbo-admin账户信息 admin.root.user.name=root admin.root.user.password=root
    #内嵌的tomcat端口号 server.port=9760

步骤3 编译

  • cd /usr/local/cloud/test/dubbo-admin/incubator-Dubbo-ops mvn package
    -DskipTests=true 步骤4 启动 cd /usr/local/cloud/test/dubbo-admin/incubator-Dubbo-ops/dubbo-admin-server/target
    nohup java -jar dubbo-admin-server-0.3.0-SNAPSHOT.jar > log.file
    2>&1 &

步骤4 验证
4.1 查看端口号是否起来netstat -tunlp
dubbo-admin安装步骤

4.2 wget http://172.17.0.18:9760/
dubbo-admin安装步骤

4.3 登录网站验证
dubbo-admin安装步骤

附加

  • #将这个jar包复制到合适的路径下,如/usr/local/dubbo-admin/ mkdir /usr/local/dubbo-admin cp
    /opt/incubator-Dubbo-ops/dubbo-admin/target/dubbo-admin-server-0.3.0-SNAPSHOT.jar
    /usr/local/dubbo-admin/

    #然后启动服务 nohup java -jar dubbo-admin-server-0.3.0-SNAPSHOT.jar > log.file 2>&1 &

    #加入开机自启: echo ‘nohup java -jar dubbo-admin-server-0.3.0-SNAPSHOT.jar > log.file 2>&1 &’ >>/etc/rc.local

感谢

如果觉得内容赞,您可以请我喝杯咖啡:
dubbo-admin安装步骤dubbo-admin安装步骤

上一篇:binlog恢复数据


下一篇:第三章 3.5 磁盘分区管理