GithubHelp home page GithubHelp logo

zhaojun2066 / consul-ngnix-test Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 13.25 MB

nginx upstream server 自动注册和发现

Shell 39.11% Java 60.89%
nginx consul-template consul spring-boot nginx-upstream failover tomcat

consul-ngnix-test's Introduction

upstream 自动发现 更新 nginx 配置文件 然后重启nginx

consul-server

    consul 启动二进制文件
    remark 备注
    start.sh consul agent server 启动脚本
    启动之后的web 界面 http://127.0.0.1:8500/ui/#/dc1/services

consul-template

    参考:https://www.hashicorp.com/blog/introducing-consul-template
    consul-template consul-template 二进制文件
    demo.tomcat.ctempl 模板文件
    start.sh consul agent server 启动脚本

nginx

    nginx 配置和启动脚本
    nginx.conf nginx 配置文件
    start.sh ningx 启动脚本

web-server

    tomcat 启动 注册到consul和摘除从consul

bin

    总启动脚本 sh ./bin/start.sh
    然后启动-server 可以多启动几个脚本试试,观察web界面service变化

consul-ngnix-test's People

Contributors

zhaojun2066 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

guoyu07 showsmall

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.