zoukankan      html  css  js  c++  java
  • dubbo管控台安装

    1. jdk安装

    #  cp installpkgs/jdk-7u67-linux-x64_tar_gz /usr/local

    #  tar -zxf jdk-7u67-linux-x64_tar_gz

    #  vi /etc/profile

    export JAVA_HOME=/usr/local/jdk1.7.0_67

    export PATH=$JAVA_HOME/bin:$PATH

    export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

    # source /etc/profile

    # java -version

    切换普通用户有jdk

    # vi /etc/bashrc

    export JAVA_HOME=/usr/local/jdk1.7.0_67

    export PATH=$JAVA_HOME/bin:$PATH

    export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

    # source /etc/bashrc

    2. zookeeper安装

    # su haoxr

    $ cd ~

    $ cp /installpkgs/zookeeper-3.4.6.tar.gz  .

    $ tar -zxvf zookeeper-3.4.6.tar.gz

    $ cd zookeeper-3.4.6/

    $ mkdir data

    $ mkdir logs

    $ cd conf

    $ cp zoo_sample.cfg zoo.cfg

    $ vi zoo.cfg

    # The number of milliseconds of each tick

    tickTime=2000

    # The number of ticks that the initial

    # synchronization phase can take

    initLimit=10

    # The number of ticks that can pass between

    # sending a request and getting an acknowledgement

    syncLimit=5

    # the directory where the snapshot is stored.

    # do not use /tmp for storage, /tmp here is just

    # example sakes.

    dataDir=/home/haoxr/zookeeper-3.4.6/data

    dataLogDir=/home/haoxr/zookeeper-3.4.6/logs

    # the port at which the clients will connect

    clientPort=2181

    # the maximum number of client connections.

    # increase this if you need to handle more clients

    #maxClientCnxns=60

    #

    # Be sure to read the maintenance section of the

    # administrator guide before turning on autopurge.

    #

    # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance

    #

    # The number of snapshots to retain in dataDir

    #autopurge.snapRetainCount=3

    # Purge task interval in hours

    # Set to "0" to disable auto purge feature

    #autopurge.purgeInterval=1

    server.1=srv-provider:2888:3888

    $ cd ../data

    $ vi myid

    1

    配置zookeeper环境变量

    $ vi /home/haoxr/.bash_profile

    export ZOOKEEPER_HOME=/home/haoxr/zookeeper-3.4.6

    export PATH=$ZOOKEEPER_HOME/bin:$PATH

    $ source /home/haoxr/.bash_profile

    切回root用户,添加dns域名解析

    $ su root

    Password:******

    # vi /etc/hosts

    192.169.213.129 srv-provider

    # exit

    $ cd zookeeper-3.4.6/bin/

    $ zkServer.sh start

    查看状态

    $ zkServer.sh status

    设置zookeeper开机启动

    切换root用户

    # vi /etc/rc.local

    su - haoxr -c '/home/haoxr/zookeeper-3.4.6/bin/zkServer.sh start'

    3. dubbo管控台安装

    $ cp /installpkgs/apache-tomcat-7.0.41.tar.gz .

    $ tar -zxvf apache-tomcat-7.0.41.tar.gz

    $ mv apache-tomcat-7.0.41/ dubbo-admin-tomcat

    $ cd dubbo-admin-tomcat/webapps

    $ rm -rf *

    $ unzip /installpkgs/dubbo-admin-2.5.3.war -d ROOT

    $ vi ROOT/WEB-INF/dubbo.properties

    dubbo.registry.address=zookeeper://192.168.43.130:2181

    dubbo.admin.root.password=123456

    dubbo.admin.guest.password=123456

     $ cd ../bin/

    $ ./startup.sh

    查看启动日志

    $ tail -f ../logs/catalina.out

    关闭防火墙,切到root身份

    立即生效

    # service iptables stop   

    重启永久生效

    # chkconfig iptables off

  • 相关阅读:
    Linux-安装FFmpeg
    博客园添加视频
    博客园添加音乐
    通过容器提交镜像(docker commit)以及推送镜像(docker push)笔记
    根据不同配置.env获取不同的配置文件的配置
    1M大概多少个字
    计算机存储单位
    DNS原理及其解析过程
    查看到百度经过了多少个网关
    C语言的本质(18)——函数的可变参数
  • 原文地址:https://www.cnblogs.com/fly4j/p/8153274.html
Copyright © 2011-2022 走看看