使用 Docker 建立 MySQL 集群
使用 Docker 建立 Mysql 集群 软件环境介绍 操作系统:Ubuntu server 64bit 14.04.1 Docker 版本 1.6.2 数据库:Mariadb 10.10 (Mariadb 是 MySQL 之父在 MySQL 被 Oracle 收购之后 创建的分支,性能上优于 MySQL 开源版本) 第一步 安装 Docker 对于 Ubuntu,建议直接联网安装 Docker https://get.docker.com 下下来的虽然名字是 index.html,但其实是脚本文件,所以我们 chmod +x index.html 这样我们就可以执行这个文件: sudo ./index.html 安装完成后根据提示,可以将当前用户加到 docker 用户组里,这样就不用每次 执行 docker 都需要 sudo 了。 sudo usermod -aG docker <你的用户名> 首先要把企业常用软件包的软件源安装上 yum install epel-release 然后再 yum install docker-io 第二步 运行 Mariadb 容器 首先要将数据镜像拉下来 docker pull mariadb:latest 注意,如果不加:latest 标签,docker 会把所有的镜像版本都拉下来。 然后我们就可以启动镜像了,参数方面需要注意的有一下几点: 1,-name <给容器取个好记的名称>0 码力 | 3 页 | 103.32 KB | 1 年前3Qcon北京2018--《MySQL的Docker容器化大规模实践》--王晓波
交付能力差。 MySQL数据库为何要Docker化 1.MySQL数据库迅速爆炸式增长后,服务器规模不断增大,快速部署是个问题。 2.随着业务的发展,扩容数据库的不方便不快捷,也是个问题。 3.大量数据量小的数据库系统也单独部署在物理机,浪费问题突出。 4.DBA的数据库自动化标准化运维的需求。 5.Docker在同程的大规模使用,应用部署环境100%容器化,有Docker丰富的经验 。 让数据库的部署点单化开启 资源池调度 调度规则 容器调度 资源池 容器及实例创建 应用交付 资源申请 IO类型 配置 为了保证MySQL的高可用,需要在Docker容器分配时如何保障主从不在同一宿主机上。我们通过自研 Docker容器调度平台管理所有宿主机和容器,自定义Docker容器的分配算法。实现了MySQL的高密度,隔离 化,高可用化部署。 调度规则: 1.同一复制集群的实例在不同主机上。 2.优先分配CPU、内存、磁盘空间资源最空闲的主机。 VIP集群必须主从端口一致,Proxy接入的集群端口无需一致。 6.VIP集群端口基于网段递增,Proxy集群端口基于IP递增 Docker里放了什么 内核版本 操作系统 宿主机 容器 镜像 Kernel版本 4.7 CentOS 7.2 部署服务器监控、容器监控agent容器 Docker版本 1.12,部署监控及系统服务agent MariaDB镜像(按产品)、MySQL5.7镜像(按产品)、监控容器镜0 码力 | 32 页 | 7.11 MB | 1 年前3常见Redis未授权访问漏洞总结
Redis 未授权访问漏洞 MongoDB 未授权访问漏洞 Jenkins 未授权访问漏洞 Memcached 未授权访问漏洞 JBOSS 未授权访问漏洞 VNC 未授权访问漏洞 Docker 未授权访问漏洞 ZooKeeper 未授权访问漏洞 Rsync 未授权访问漏洞 Atlassian Crowd 未授权访问漏洞 CouchDB 未授权访问漏洞 Elasticsearch 环境搭建 这里使用docker (https://www.runoob.com/docker/docker-tutorial.html 可自行Google) 攻击机: Windows10 目标靶机: Kali ip地址: 192.168.18.128 连接工具:Xshell docker search mongodb # 从Docker Hub查找镜像 docker pull mongo com/download/releasesv5/nosqlbooster4mongo-5.1.12.exe docker images mongo #列出本地主机上的mongo镜像 docker run -d -p 27017:27017 --name mongodb mongo # 创建一个新的容器并运行一个命令 docker ps -a # 显示所有的容器,包括未运行的 nmap检测 防御手段0 码力 | 44 页 | 19.34 MB | 1 年前3TiDB中文技术文档
- 本文档使用 书栈(BookStack.CN) 构建 TiDB 运维文档 软硬件环境需求 部署集群 Ansible 部署方案(强烈推荐) 离线 Ansible 部署方案 Docker 部署方案 Docker Compose 部署方案 跨机房部署方案 配置集群 参数解释 TiDB 配置项解释 开启 TLS 验证 生成自签名证书 监控集群 整体监控框架概述 重要监控指标详解 组件状态 API & 监控 TiDB 内存控制 高级功能 历史数据回溯 垃圾回收 (GC) TiDB 运维文档 软硬件环境需求 部署集群 Ansible 部署方案(强烈推荐) 离线 Ansible 部署方案 Docker 部署方案 Docker Compose 部署方案 跨机房部署方案 配置集群 参数解释 README - 8 - 本文档使用 书栈(BookStack.CN) 构建 TiDB 配置项解释 使用 Ansible 变更组件配置 Ansible 常见运维操作 - 196 - 本文档使用 书栈(BookStack.CN) 构建 TiDB 运维文档 软硬件环境需求 Ansible 部署方案 (强烈推荐) 离线 Ansible 部署方案 Docker 部署方案 跨机房部署方案 配置参数 使用 Ansible 变更组件配置 整体监控框架概述 重要监控指标详解 组件状态 API & 监控 集群扩容缩容方案 使用 Ansible 扩容缩容 使用 Anisble0 码力 | 444 页 | 4.89 MB | 6 月前3phpMyAdmin Documentation release 4.7.0
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker image [https://hub.docker.com/r/phpmyadmin/phpmyadmin/], which you can easily deploy. You can download it using: docker pull phpmyadmin/phpmyadmin executed on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 217 页 | 409.13 KB | 1 年前3phpMyAdmin Documentation release 5.0.4
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker official image [https://hub.docker.com/_/phpmyadmin], which you can easily deploy. You can download it using: docker pull phpmyadmin The phpMyAdmin listen on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 235 页 | 370.30 KB | 1 年前3phpMyAdmin Documentation Release 5.0.5-dev
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker official image [https://hub.docker.com/_/phpmyadmin], which you can easily deploy. You can download it using: docker pull phpmyadmin The phpMyAdmin listen on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 235 页 | 370.31 KB | 1 年前3phpMyAdmin Documentation release 4.8.5
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker image [https://hub.docker.com/r/phpmyadmin/phpmyadmin/], which you can easily deploy. You can download it using: docker pull phpmyadmin/phpmyadmin listen on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 232 页 | 366.09 KB | 1 年前3phpMyAdmin Documentation release 4.9.9
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker image [https://hub.docker.com/r/phpmyadmin/phpmyadmin/], which you can easily deploy. You can download it using: docker pull phpmyadmin/phpmyadmin listen on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 232 页 | 368.41 KB | 1 年前3phpMyAdmin Documentation Release 4.9.1-dev
distributions Installing on Windows Installing from Git Installing using Composer Installing using Docker Quick Install Verifying phpMyAdmin releases phpMyAdmin configuration storage Upgrading from an older --no-dev Installing using Docker phpMyAdmin comes with a Docker image [https://hub.docker.com/r/phpmyadmin/phpmyadmin/], which you can easily deploy. You can download it using: docker pull phpmyadmin/phpmyadmin listen on port 80. It supports several ways of configuring the link to the database server, either by Docker’s link feature by linking your database container to db for phpMyAdmin (by specifying --link your_db_host:db)0 码力 | 233 页 | 366.15 KB | 1 年前3
共 166 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17