zoukankan      html  css  js  c++  java
  • dubbo

    dubbo

    http://dubbo.apache.org/zh-cn/
    http://mirror.bit.edu.cn/apache/incubator/dubbo/2.6.6/apache-dubbo-incubating-2.6.6-bin-release.zip
    https://github.com/apache/dubbo-admin
    https://github.com/apache/dubbo-admin/blob/develop/README_ZH.md

    提示maven版本过低,解决方法

    git clone https://github.com/apache/dubbo-admin.git
    cd /test/dubbo-admin
    mvn clean package
    [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project dubbo-admin-ui: The plugin com.github.eirslett:frontend-maven-plugin:1.6 requires Maven version 3.1.0 -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :dubbo-admin-ui

    安装maven
    http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz

    tar xf  apache-maven-3.6.1.tar.gz -C  /usr/local/src/
    ln -sv /usr/local/src/apache-maven-3.6.1 /usr/local/maven
    vim /etc/profile
    export PATH =/usr/local/maven/bin:$PATH
    
    mvn clean package
    [INFO] Executing tasks
    
    main:
         [copy] Copying 1 file to /test/dubbo-admin/dubbo-admin-distribution/target
    [INFO] Executed tasks
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary for dubbo-admin 0.1:
    [INFO] 
    [INFO] dubbo-admin ........................................ SUCCESS [  4.295 s]
    [INFO] dubbo-admin-ui ..................................... SUCCESS [03:34 min]
    [INFO] dubbo-admin-server ................................. SUCCESS [02:56 min]
    [INFO] dubbo-admin-distribution ........................... SUCCESS [  6.448 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  06:42 min
    [INFO] Finished at: 2019-08-09T14:35:12+08:00
    [INFO] ------------------------------------------------------------------------
    unzip dubboadmin.war
    grep zookeeper./* -R
    Binary file dubboadmin.war matches
    META-INF/maven/com.alibaba/dubbo-admin/pom.xml:			<groupId>org.apache.zookeeper<groupId>
    META-INF/maven/com.alibaba/dubbo-admin/pom.xml:			<artifactId>zookeeper</artifactId>
    Binary file WEB-INF/lib/dubbo-2.8.4.jar matches
    Binary file WEB-INF/lib/zookeeper-3.4.6.jar matches
    WEB-INF/dubbo.properties:dubbo.registry.address=zookeeper://zookeeper1.injured-test.svc.cluster.local:2181 | zookeeper://zookeeper2.injured-test.svc.cluster.local:2181 | zookeeper://zookeeper3.injured-test.svc.cluster.local:2181
    
    cat WEB-INF/dubbo.properties 
    dubbo.registry.address=zookeeper://192.168.10.211:2181 | zookeeper://192.168.10.212:2181 | zookeeper://192.168.10.213:2181
    dubbo.admin.root.password=root
    dubbo.admin.guest.password=guest

    启动tomcat

    浏览器访问
    http://192.168.10.254:8080/dubboadmin/
    用户名密码root
    dubbo

    提供者

    tar xf dubbo-demo-provider-2.1.5-assembly.tar.gz 
    cd dubbo-demo-provider-2.1.5
    grep -v "#" conf/dubbo.properties 
    dubbo.container=log4j,spring
    dubbo.application.name=demo-provider
    dubbo.application.owner=
    #dubbo.registry.address=zookeeper://192.168.10.211:2181 | zookeeper://192.168.10.212:2181 | zookeeper://192.168.10.213:2181
    dubbo.registry.address=zookeeper://192.168.10.213:2181
    dubbo.monitor.protocol=registry
    dubbo.protocol.name=dubbo
    dubbo.protocol.port=20880
    dubbo.log4j.file=logs/dubbo-demo-provider.log
    dubbo.log4j.level=WARN
    
    yum install nc -y
    
    
    ./bin/start.sh
    .Ncat: Idle timeout expired (1000 ms).
    .Ncat: Idle timeout expired (1000 ms).
    .Ncat: Idle timeout expired (1000 ms).
    .Ncat: Idle timeout expired (1000 ms).
    
    
    [root@e1 logs]# ss -tnl
    State       Recv-Q Send-Q  Local Address:Port                 Peer Address:Port              
    LISTEN      0      50                  *:20880

    dubbo
    dubbo

    消费者

    tar xf dubbo-demo-consumer-2.1.5-assembly.tar.gz 
    cd dubbo-demo-consumer-2.1.5
    vim conf/dubbo.properties 
    dubbo.container=log4j,spring
    dubbo.application.name=demo-provider
    dubbo.application.owner=
    #dubbo.registry.address=zookeeper://192.168.10.211:2181 | zookeeper://192.168.10.212:2181 | zookeeper://192.168.10.213:2181
    dubbo.registry.address=zookeeper://192.168.10.213:2181
    dubbo.monitor.protocol=registry
    dubbo.protocol.name=dubbo
    dubbo.protocol.port=20880
    dubbo.log4j.file=logs/dubbo-demo-provider.log
    dubbo.log4j.level=WARN
    
    ./bin/start.sh

    dubbo
    dubbo

  • 相关阅读:
    洛谷 P1200.[USACO1.1]你的飞碟在这儿Your Ride Is Here
    洛谷 P1055.ISBN号码
    洛谷 P1567.统计天数
    洛谷 P2141.珠心算测验
    洛谷 P1428.小鱼比可爱
    洛谷 P1427.小鱼的数字游戏
    洛谷 P1047.校门外的树
    洛谷 P1046.陶陶摘苹果
    洛谷 P1980.计数问题
    洛谷 P1424.小鱼的航程(改进版)
  • 原文地址:https://www.cnblogs.com/fina/p/11347109.html
Copyright © 2011-2022 走看看