zookeeper+dubboAdmin+taokeeper+监控中心



I.安装zookeeper

C:\DingSai\Work\study\dubbo_project\zookeeper-3.4.6\logs


C:\DingSai\Work\study\dubbo_project\zookeeper-3.4.6\data




clientPort=2181


II.修改配置con/zoo.cfg
dataDir=C:\DingSai\Work\study\dubbo_project\zookeeper-3.4.6\data


server.1=localhost:2888:3888


II.新增配置data下增加myid
1
#和server.1对应




II.启动zookeep
C:\DingSai\Work\study\dubbo_project\zookeeper-3.4.6\bin>zkServer.cmd




C:\DingSai\Work\study\dubbo_project\zookeeper-3.4.6\bin\zkServer.cmd






I.安装dubbo admin



II.修改配置文件
dubbo.properties


##注册中心配置
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest






 C:\DingSai\Work\apache-tomcat-6.0.45_8888\bin\startup.bat




I.taokeeper 

C:\Program Files\MySQL\MySQL Server 5.6\bin


mysql -uroot -p

II.配置文件
systemInfo.envName=DAILY


#DBCP
dbcp.driverClassName=com.mysql.jdbc.Driver
dbcp.dbJDBCUrl=jdbc:mysql://127.0.0.1:3306/taokeeper
dbcp.characterEncoding=GBK
dbcp.username=root
dbcp.password=密码
dbcp.maxActive=30
dbcp.maxIdle=10
dbcp.maxWait=10000


#SystemConstant
SystemConstent.dataStoreBasePath=C:/DingSai/Work/study/dubbo_project/TaoKeeper
SystemConstant.userNameOfSSH=administrator
SystemConstant.passwordOfSSH=密码
#Optional
SystemConstant.portOfSSH=22




II.在tomcat启动脚本中catalina.bat中(大概在186行下面)添加Java_OPTS:


Windows上:
set JAVA_OPTS=-DconfigFilePath="C:\DingSai\Work\study\dubbo_project\TaoKeeper\taokeeper-monitor-config.properties"
linux上:


JAVA_OPTS=-DconfigFilePath="/home/kobe/taokeeper-monitor/config/taokeeper-monitor-config.properties"




II.复制到taokeeper-monitor  到webapp目录


http://localhost:8888/taokeeper-monitor/








I.dubbo监控中心:

dubbo-monitor-simple-2.5.3


#调用监控中心
dubbo.registry.address=zookeeper://127.0.0.1:2181


#本监控的端口
dubbo.protocol.port=7070
#本监控需要的网页端口
dubbo.jetty.port=7077


配置文件
dubbo.properties
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocol.port=7070
dubbo.jetty.port=7077
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN


II.启动dubbo monitor 
进入 C:\DingSai\Work\study\dubbo_project\dubbo-monitor-simple-2.5.3\bin\
一定要进入文件夹不然访问不到路径
start.bat


II.访问dubbo monitor

http://localhost:7077/




下载安装包等信息:

http://download.csdn.net/detail/dingsai88/9470472


你可能感兴趣的:(架构设计)