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
本文作者:有来技术
本文链接:https://www.cnblogs.com/haoxianrui/p/8153274.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)