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
dubbo管控台安装的更多相关文章
- Dubbo管控台安装(zookeeper单机版)
1. zookeeper安装(单机版):http://www.cnblogs.com/wangfajun/p/5251159.html √ 注意:我这里的dubbo-admin.war是2.5.3版 ...
- Dubbo管控台安装(zookeeper集群)
Dubbo管控台可以对注册到zookeeper注册中心的服务或服务消费者进行管理,但管控台是否正常对Dubbo服务没有影响,管控台也不需要高可用,因此节点部署 环境:Centos6.6.IP:10 ...
- Dubbo-Centos7管控台安装
1.下载Tomcat7: $ wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0. ...
- centos6.5安装dubbo管控台教程(四)
阅读此文之前,需要先安装zookeeper. 阅读文章: http://www.cnblogs.com/duenboa/articles/6665169.html 1. 下载文件 dubbo-ad ...
- Linux 启动dubbo管控台:
- zookeeper集群和安装dubbo的管控台
准备三台服务器CentOs6: 192.168.37.132 192.168.37.128 192.168.37.131 1 将zookeeper的安装包分别解压到/usr/local/目录下 进入c ...
- Dubbo2.6.5入门——管控台的安装
首先去下载管控台:GitHub 然后解压到本地,截止到目前2019-01-18,最新管控台基于Dubbo2.7.0-SNAPSHOT版本,但是2.7.0还没有正式发布,不过影响不大. Dubbo Op ...
- 消息中间件——RabbitMQ(四)命令行与管控台的基本操作!
前言 在前面的文章中我们介绍过RabbitMQ的搭建:RabbitMQ的安装过以及各大主流消息中间件的对比:,本章就主要来介绍下我们之前安装的管控台是如何使用以及如何通过命令行进行操作. 1. 命令行 ...
- Dubbo管控平台
2019年初,官方发布了Dubbo管理控制台0.1版本.结构上采取了前后端分离的方式,前端使用Vue和Vuetify分别作为Javascript框架和UI框架,后端采用Spring Boot框架 一. ...
随机推荐
- sqlserver 修改数据库表所有者
SQLServer修改表所有者 来自:http://www.cnblogs.com/tearer/archive/2012/09/16/2687802.html 批量修改:EXEC sp_MSfor ...
- MySQL按日、周、月统计数据
知识关键词:DATE_FORMAT ps:如果时间字段为时间戳则,DATE_FORMAT(from_unixtime(create_time),'%Y-%u') select DATE_FORMAT( ...
- 证明2x2正交矩阵专置后还是正交矩阵
[ x1 x2 y1 y2] x1^2+y1^2=1 x2^2 + y2^2=1 x1*x2 + y1*y2=0 如果专置后还是 x1^2 + x2^2=1 y1^2 +y2^2=1 x1* ...
- Windows下python环境配置
步骤: 1.安装Python.Sublime Text: 2.打开Sublime Text,在菜单栏点击“Tools”->“Build System”->“New Build System ...
- 安卓 build/core/Makefile 以及main.mk
android make 系统总共分为四层 arch board device product 在各个字android.mk文件中引用的定义都存放在./build/core/下!比如android.m ...
- Typecho 官方文档 接口介绍
官方开发文档实在是太潦草了 Widget_Archive 接口 参数 描述 indexHandle $archive Widget_Archive对象 $select Typecho_Db_Query ...
- ubuntu server sudo出现sudo:must be setuid root 完美解决办法
原文链接:http://blog.csdn.net/supercrsky/article/details/9788397 1.开机按shift或esc先进行recovery模式 2.选择root命令行 ...
- char类型
1.JAVA中,char占2字节,16位.可在存放汉字 2.char赋值 char a='a'; //任意单个字符,加单引号. char a='中';//任意单个中文字,加单引号. char a=1 ...
- 深入浅出javascript(三)封装和继承
一.私有变量和公有变量 通过var修饰的是私有变量. 二.私有变量的访问方法 三.特权.公有和私有方法 一个例子: function f(name) { var name=name; //私有变量 t ...
- winSockets编程(七)WSAAsyncSelect模式
占位## #include <WinSock2.h> #include <Windows.h> #include <StrSafe.h> #pragma comme ...