windows系統下Disconf web安裝-分布式組態管理平台

來源:互聯網
上載者:User

標籤:tom   cli   tail   執行   access   mic   分布式   dea   pos   

文章參考自

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  (官方文檔)

一.環境準備   

1.下載disconf源碼https://github.com/knightliao/disconf   

2.下載nginx1.10.2(windows版) http://nginx.org/download/nginx-1.10.2.zip  

3.安裝tomcat https://tomcat.apache.org/download-70.cgi   

4.安裝redis https://www.cnblogs.com/M-LittleBird/p/5902850.html(windows安裝指導) https://github.com/MicrosoftArchive/redis/tags(安裝包)   

5.安裝好zookeeper http://blog.csdn.net/tlk20071/article/details/52028945(windows安裝指導)

二、組件配置

1、tomcat配置

idea的tomcat配置

2、nginx配置(nginx-1.12.2\conf\nginx.conf)看好插入的層級管理,不要插入錯了

upstream disconf {      server 127.0.0.1:9999;      #代理tomcat,動態請求轉寄至後端tomcat程式,這裡和tomcat的連接埠號碼配置相同     }     server {         listen       8089;  #這裡是nginx的監聽連接埠        server_name  localhost;       location / {          root E:\project\disconf\disconf\disconf-web\html;   #這裡指向項目中disconf-web子模組中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://127.0.0.1:9999;      #tomcat連接埠    }              location = /favicon.ico {          log_not_found off;          access_log off;      }  }

3、Redis配置(redis-3.2.100\redis.windows.conf)

設定密碼 

# requirepass foobared 在設定檔中找到這項,然後解開注釋即可,這個會在後面設定檔中配置#設定Redis密碼requirepass foobared

這裡啟動可以參考上面文章,很有協助

 4、zookeeper配置

5、資料庫配置

建立一個資料庫,我這裡建立的是disconf資料庫,然後按順序執行下面的指令碼

 

6、disconf配置

將disconf-web添加到父模組中

項目設定檔配置----將rd中的設定檔修改----然後複製到src/resourse中

1).jdbc-mysql.properties  修改資料庫連接

2).redis-config.properties  修改redis串連

3).zoo.properties      修改zookeeper串連

4).將application-demo.properties 改名為 application.properties

 

 

三、項目啟動

   1、先啟動中介軟體(nginx、zookeeper、Redis)

   2、然後用idea啟動項目

3、輸入網址http://localhost:8089/main.html

    可以看到以下,表示啟動成功,然後登陸吧(帳號admin-密碼admin)

 

 

 

     

 

windows系統下Disconf web安裝-分布式組態管理平台

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.