Giter VIP home page Giter VIP logo

jxstu's Introduction

jxstu

介绍

{简易学生成绩系统,Linux运维培训实战项目,docker+宿主机配合搭建 }

软件架构

  1. 数据库包含,ER图、多表查询、主从同步,使用mysql5.5搭建
  2. 业务区域包含apache+shell脚本,使用shell脚本实现学生增删改查等业务,还包含nginx七层负载均衡、
  3. 宿主机包含lvs-NAT四层负载均衡,链接webnet和appnet两个区域
  4. web区域包含apache和lvs-dr四层负载均衡,实现动静分离 系统架构图

数据库结构

  1. 数据包含学生、考试、科目、成绩四个实体,其关系如下图所示 数据库ER图

安装教程

  1. 宿主机安装docker、docker-compose、ipvsadm,下载文件:http://xpm.cpolar.top/soft/centos7-mysql55.tar.gz
  2. 分别解压centos7-mysql55.tar.gz到apache-cluster、mysql-slave、mysql-master

使用说明

  1. 执行docker-compose build构建镜像
  2. 执行docker-compose up -d启动镜像
  3. 执行./lvs.sh配置宿主机lvs-nat开启web和app区域连通

注意事项

  1. 在apache-web/apache-web.env中写死了web区域网关APP_ADDR=172.20.0.1、web区域DR虚拟地址VIP=172.20.0.100
  2. 在lvs-web/lvs-web.env中写死了web区域DR虚拟地址VIP=172.20.0.100
  3. 写死配置是在docker安装后无任何网络情况下,因为docker0是172.17.0.0/16,所以dbnet是172.18.0.0/16,appnet是172.19.0.0/16,webnet是172.20.0.0/16
  4. 所以需要根据自己环境,预判webnet网络创建后的网络地址

如果有任何问题请发邮件: [email protected]

jxstu's People

Contributors

laoyang103 avatar

Stargazers

 avatar  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.