Coder Social home page Coder Social logo

tp.diamond's Introduction

基于淘宝diamond改造的配置管理服务器,主要做了如下改造
1:重新设计了界面,基于bootstrap样式
2:重新重构了工程的pom.xml,更新jar
3:去掉了不必要的功能代码
4:项目编码改成了UTF-8
5:数据库表config-info增加了字段username,用于控制登录用户只能操作自己的配置数据。

部署:
1:dimaond-server数据库脚本
CREATE TABLE `config_info` (
  `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `data_id` varchar(255) NOT NULL DEFAULT '',
  `group_id` varchar(128) NOT NULL DEFAULT '',
  `username` varchar(100) NOT NULL,
  `description` varchar(256) DEFAULT NULL,
  `content` longtext NOT NULL,
  `md5` varchar(32) NOT NULL,
  `gmt_create` datetime NOT NULL DEFAULT '2010-05-05 00:00:00',
  `gmt_modified` datetime NOT NULL DEFAULT '2010-05-05 00:00:00',
  KEY `ID` (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8

2:安装tomcat服务器,采用8080端口,因为diamond-client默认使用8080连接服务器端
3:dimaond-server构建获取war包(mvn clean install -Pproduction),修改war名称为diamond-server.war,
4:修改数据库连接,数据库配置文件为:META-INF/res/jdbc-production.properties
5:diamond-server访问用户数据存放在文件:/META-INF/res/user.properties中,可以在此文件中修改用户数据。
6:启动tomcat服务器。
7:启动服务器以后,diamond-server.war被解压出一个目录diamond-server,在diamond-server目录中创建文件dimaond
       文件添加内容为当前服务器IP地址

tp.diamond's People

Contributors

melin avatar

Watchers

Bill Xiong avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.