分布式配置管理平台 - Disconf web管理端安装
标签: 配置管理分布式
2015-11-01 00:17 15640人阅读 评论(4) 收藏 举报
分类:
文件系统及分布式(11)
目录(?)[+]
1.环境配置
配置java、maven环境,并安装mysql,reids,zookeeeper,Nginx
2.下载disconf
下载https://codeload.github.com/knightliao/disconf/zip/master
解压:unzip disconf-master.zip
3.编译打包
创建目录
[plain] view plain copy
print?
mkdir /home/disconf/online-resources
mkdir /home/disconf/war
cd disconf-master
mvn clean install
ONLINE_CONFIG_PATH=/home/disconf/online-resources
WAR_ROOT_PATH=/home/disconf/war
export ONLINE_CONFIG_PATH
export WAR_ROOT_PATH
cd disconf-web
sh deploy/deploy.sh
完成在/home/disconf/war目录下产生文件
[plain] view plain copy
print?
-disconf-web.war
-html
-jpaas_control
-META-INF
-Release
-tmp
-WEB-INF
4.修改配置
1)将配置文件放到此地址目录下:/home/disconf/online-resources
配置文件包括:
- jdbc-mysql.properties (数据库配置)
- redis-config.properties (Redis配置)
- zoo.properties (Zookeeper配置)
- application.properties (应用配置)
注意,记得执行将application-demo.properties复制成application.properties:
cp application-demo.properties application.properties
2)修改disconf配置
cd /home/disconf/war/WEB-INF/classes/
application.properties
jdbc-mysql.properties
redis-config.properties
zoo.properties
修改文件中的地址端口,调整日志目录
#log4j.properties
${catalina.home}/logs/disconf-log4j.log
#logback.xml
<property name="log.base" value="${catalina.home}/logs/disconf-web"/>
<property name="log.monitor" value="${catalina.home}/logs/monitor"/>
5.初始化数据库
按照disconf-master/disconf-web/sql/readme.txt说明按照顺序导入数据
6.配置tomcat
安装tomcat配置server.xml配置war目录
<Context path="" docBase="/home/disconf/disconf/war"></Context>
7.配置nginx
安装nginx,并配置,安装参考:http://blog.csdn.net/zhu_tianwei/article/details/17752581
配置:vi /home/disconf/nginx/conf/nginx.conf
[plain] view plain copy
print?
upstream disconf {
server 127.0.0.1:8080;
}
server {
listen 8000;
server_name localhost;
access_log logs/disconf_access.log;
error_log logs/disconf_error.log;
location / {
root /home/disconf/disconf/war/html;
if ($query_string) {
expires max;
}
}
location ~ ^/(api|export) {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://disconf;
}
}
通过http://192.168.1.90:8000/即可访问 默认用户:admin/admin
关于使用参考官方文档:
总体概述
TutorialSummary 功能总体概述
文章介绍:分布式配置管理平台Disconf
基于注解式的分布式配置(支持配置文件和配置项)
推荐新建的项目使用disconf时使用
Tutorial 1 注解式分布式的配置文件
Tutorial 2 注解式分布式的配置文件高级篇: 配置更新的通知
Tutorial 3 注解式分布式的配置项
Tutorial 4 注解式分布式静态配置文件和静态配置项
注:将配置文件移至一个专有类里,而不是分散在项目的各个地方,整个代码架构清晰易懂、易管理。 即便如果哪天不使用disconf,也只需要将注解去掉即可。
基于XML的分布式配置(无代码侵入)(仅支持配置文件)
推荐旧项目使用disconf时使用
Tutorial 8 基于XML的分布式配置文件管理,自动reload
Tutorial 5 基于XML的分布式配置文件管理,不会自动reload,对于那些比较重的资源如jdbc等,特别有用
其它
Tutorial 6 disconf-web 功能详解
Tutorial 7 可自定义的部分托管的分布式配置
Tutorial disconf与dubbo的集成 demo
Tutorial 9 实现真正意义上的统一上线包
Tutorial 10 实现一个配置更新下载器agent
配置说明
异常考虑
局限性和注意事项
注意事项
Zookeeper异常考虑
分享到:
相关推荐
分布式架构Wish脚手架项目,mybatis据库读写分离,disconf配置中心等-Wish
linux环境、windows环境Disconf的disconf-web.war,可以直接部署。另外还包含环境搭建操作部署、配置说明、部署操作步骤以及war包,可以直接部署
Disconf 分布式配置使用教程
disconf自做文档,主要用途是自己看,以便于学习,毕竟不是一天都在公司
disconf分布式配置demo
分布式配置中心 Disconf 编译好的安装包, 分布式配置中心 Disconf 编译好的安装包,。
middleware-disconfdisconf配置中心,根据公司业务和存在的问题进行完善
Disconf分布式配置管理平台 v2.6.36.zip
2.修改war包下的配置文件,具体目录是disconf-web.war\WEB-INF\classes\ jdbc-mysql.properties (数据库配置) redis-config.properties (Redis配置) zoo.properties (Zookeeper配置) application.properties (应用...
百度的disconf确实好用,但是手工添加配置项和配置文件很烦躁,自己利用闲余时间写了该脚本,主要支持对disconf的app自动下载和添加配置,运行之前,请先在桌面上新建一个applist的文本,里面填上待操作的appname...
为您提供Disconf分布式配置管理平台下载,Disconf(Distributed Configuration Management Platform)分布式配置管理平台,专注于为各种「分布式系统配置管理」的「通用组件」和「通用平台」提供统一的「配置管理...
Disconf(Distributed Configuration Management Platform)分布式配置管理平台,专注于为各种「分布式系统配置管理」的「通用组件」和「通用平台」提供统一的「配置管理服务」。包括百度、滴滴出行、银联、网易、...
disconf 例子,包括使用 disconf.properties 文件和不使用的2种方式
深入分析Zookeeper在disconf配置中心的应用 基于Zookeeper Watcher 核心机制深入源码分析 Zookeeper集群升级、迁移 基于Zookeeper实现分布式服务器动态上下线感知 深入分析Zookeeper Zab协议及选举机制源码解读...
这个文档描述的是,apollo和disconf对比,有需要的朋友可以看看
修改其中 jdbc-mysql.properties (数据库配置), redis-config.properties (Redis配置),zoo.properties (Zookeeper配置), application.properties (应用配置)配置,然后启动即可。新建disconf数据库,然后依次...
[disconf配置集成](#disconf配置集成) - [基于redis的分布式锁(控制定时任务的并发)](#基于redis的分布式锁) - [camel协议转换包](#camel协议转换包) - [数据库domain工具包](#domain工具包) - 公共属性自动填充 - ...
disconf-spring-boot-starter disconf-spring-boot-starter让您可以使用spring-boot的方式开发依赖disconf的程序只需要关心disconfi的配置文件和配置项,省略了编写xml的麻烦使用步骤(示例: )在spring boot项目的...
disconf-client-ext disconf的扩展,使其支持global共享配置给所有app 支持的disconf版本:2.6.32,其他版本没有测试过,为了避免问题最好使用2.6.32