Article reference from
http://blog.csdn.net/syc001/article/details/78128117
Https://www.cnblogs.com/mrluo735/p/6322719.html
Http://disconf.readthedocs.io/zh_CN/latest/tutorial-client/src/Tutorial9.html (Official document)
I. Environmental preparedness
1. Download disconf source https://github.com/knightliao/disconf
2. Download nginx1.10.2 (Windows edition) Http://nginx.org/download/nginx-1.10.2.zip
3. Install Tomcat https://tomcat.apache.org/download-70.cgi
4. Install Redis https://www.cnblogs.com/M-LittleBird/p/5902850.html (Windows installation Guide) https://github.com/MicrosoftArchive/ Redis/tags (Installation package)
5. Install Zookeeper http://blog.csdn.net/tlk20071/article/details/52028945 (Windows installation Guide)
Second, the component configuration
1. Tomcat Configuration
Idea's Tomcat configuration
2, Nginx configuration (nginx-1.12.2\conf\nginx.conf) optimistic about the level of insertion management, do not insert the wrong
Upstream disconf { server 127.0.0.1:9999; #代理tomcat, the dynamic request is forwarded to the back-end Tomcat program, where the port number of the Tomcat is configured identically } server { listen 8089; #这里是nginx的监听端口 server_name localhost; Location/{ root E:\project\disconf\disconf\disconf-web\html; #这里指向项目中disconf the HTML location in the-web submodule 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://127.0.0.1:9999; #tomcat端口 } Location =/favicon.ico { log_not_found off; Access_log off; } }
3. Redis Configuration (redis-3.2.100\redis.windows.conf)
Set Password
# Requirepass foobared Find this in the config file and then unpack the comment, this will be configured in the following configuration file # Set up Redis password Requirepass foobared
Starting here can refer to the above article, very helpful
4. Zookeeper Configuration
5. Database Configuration
Create a database where I create the disconf database and execute the following script sequentially
6. disconf Configuration
Adding Disconf-web to the parent module
The Project Profile configuration----Modify the profile in rd----and then copy it to Src/resourse
1). jdbc-mysql.properties Modify the database connection
2). redis-config.properties Modify Redis Connection
3). zoo.properties Modify Zookeeper Connection
4). rename application-demo.properties to Application.properties
Iii. launch of the project
1. Start the middleware first (Nginx, zookeeper, Redis)
2. Then start the project with idea
3. Enter the URL http://localhost:8089/main.html
You can see the following, indicating the success of the launch, and then login (account admin-password Admin)
disconf Web installation under Windows systems-distributed configuration management platform