MongoDB高可用集群搭建

MongoDB高可用集群搭建 一、环境准备 启动时需要使用非root用户,所有创建一个mongo用户: 1useradd mongo 2 3# 为mongo用户添加密码: 4echo 123456 | passwd --stdin mongo 5 6# 将mongo添加到sudoers 7echo "mongo ALL = (root) NOPASSWD:ALL" | tee /etc/sudoers.d/mongo 8chmod 0440 /etc/sudoers.d/mongo 9#解决sudo: sorry, you must have a tty to run sudo问题,在/etc/sudoer注释……

阅读全文

kafka集群部署

kafka集群部署 1.简介 kafka:消息队列 官网地址:http://kafka.apache.org 下载地址:kafka_2.12-2.0.0.tgz 版本说明: kafka_2.12-2.0.0.tgz │ └─kafka版本 └─scala版本 2.环境准备 1vim /etc/hosts 2192.168.33.14 node4 3192.168.33.15 node5 4192.168.33.16 node6 3.安装配置 kafka集群依赖zookeeper,……

阅读全文

部署MySQL Galera Cluster

部署MySQL Galera Cluster 0.功能简介 特性 基于行复制的完全并行同步复制 实时多主架构,任意节点可读写 无延迟复制,事务零丢失,可靠健壮的读写体验。 自动化节点关系控制:节点故障自动摘除,节点加入自动协调 接近原生的MySQL数据库连接的体验 原理简析 当一个事务在当前写入的节点提交后,通过wsrep……

阅读全文

搭建Zookeeper-3.4.13分布式集群

搭建Zookeeper-3.4.13分布式集群 1.简介 zookeeper:分布式协调应用程序 官方网站:http://zookeeper.apache.org 最新版本:3.4.13 下载地址:zookeeper-3.4.13 2.安装部署 1vim /etc/hosts 2192.168.33.14 node4 3192.168.33.15 node5 4192.168.33.16 node6 3.下载安装 先安装jdk 1yum -y install java……

阅读全文

Ceph-10.2.10安装配置

Ceph-10.2.10安装配置 环境准备 操作系统 1CentOS 7.2.1511 主机规划 1192.168.0.106 ceph-node1 #ceph-deploy 2192.168.0.107 ceph-node2 3192.168.0.108 ceph-node3 磁盘规划 1/dev/sda system 2/dev/sdb osd 3/dev/sdc osd 基本操作 关闭防火墙 1setenforce 0 2sed -i s'/SELINUX=enforcing/SELINUX=disabled'/g /etc/selinux/config 3yum -y install epel-release ssh免密登录 ceph-node1 1ssh-keygen -t rsa 2ssh-copy-id ceph-node1 3ssh-copy-id ceph-node2 4ssh-copy-id ceph-node3 时间同步 1yum -y install ntp ntpdate 2ntpdate cn.pool.ntp.org 开始部署 使用国内源 1export CEPH_DEPLOY_REPO_URL=http://mirrors.163.com/ceph/rpm-jewel/el7 2export CEPH_DEPLOY_GPG_URL=http://mirrors.163.com/ceph/keys/release.asc 安装ceph-deploy 1yum -y ceph-deploy 使用ceph-deploy快速部署……

阅读全文

部署 harbor私有仓库

部署 harbor 私有仓库 1.下载 docker-compose-1.12.0 1wget https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64 2mv docker-compose-Linux-x86_64 /usr/bin/docker-compose 3chmod a+x /usr/bin/docker-compose 2.下载 harbor-1.1.2 1wget --continue https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-offline-installer-v1.1.2.tgz 2tar -xzvf harbor-offline-installer-v1.1.2.tgz 3cd harbor 3.导入离线安装包中 harbor 相关的 docker images: 1docker load -i harbor.v1.1.2.tar.gz 2dd60b611baaa: Loading layer [==================================================>] 133.2MB/133.2MB 30bfc226dc2e8: Loading layer [==================================================>] 1.536kB/1.536kB 466c3231118d2: Loading layer [==================================================>] 17.69MB/17.69MB 5fe2c778bb727: Loading layer [==================================================>] 17.69MB/17.69MB 6Loaded image: vmware/harbor-jobservice:v1.1.2 7fe4c16cbf7a4: Loading layer [==================================================>] 128.9MB/128.9MB 8c4a8b7411af4: Loading layer [==================================================>] 60.57MB/60.57MB 93f117c44afbb: Loading layer [==================================================>] 3.584kB/3.584kB 103569f62067e2: Loading layer [==================================================>] 17.86MB/17.86MB 11Loaded image: vmware/nginx:1.11.5-patched 12Loaded image: photon:1.0 134a050fccec52: Loading layer [==================================================>] 12.16MB/12.16MB 14d918d73369ec: Loading layer [==================================================>] 17.3MB/17.3MB 1522898836924e: Loading layer [==================================================>] 15.87kB/15.87kB 16Loaded image: vmware/notary-photon:server-0.5.0 17a39bd6a7f897: Loading layer [==================================================>] 10.95MB/10.95MB 186f79b8337a1f: Loading layer [==================================================>] 17.3MB/17.3MB 1974bbd0e81dd0: Loading layer [==================================================>]……

阅读全文

Kubernetes v1.9.1 单机版本一键安装脚本

Kubernetes v1.9.1 单机版本一键安装脚本 自己部署并测试通过的,脚本如下: 1#!/bin/bash 2# ---------------------------------------- 3# kubernetes v1.9.1 单机一键部署脚本 4# 用于实验环境 5# CentOS 7.2.1511下测试OK 6# Powered by Jerry Wong 7# 2018-03-15 hzde0128@live.cn 8# ---------------------------------------- 9 10function get_local_ip() { 11 IP_ADDR=`ip addr | grep inet | grep -Ev '127|inet6' | awk '{print $2}' | awk -F'/' '{print $1}'` 12 export NODE_IP=${IP_ADDR} 13} 14 15function basic_settings() { 16 getenforce | grep Disabled > /dev/null 17 if [ $? -ne 0 ]; then 18 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config 19 fi 20 systemctl stop firewalld 21 systemctl disable firewalld 22} 23 24 25function install_docker()……

阅读全文

CentOS7下分布式系统GlusterFS安装配置

CentOS7下分布式系统GlusterFS安装配置 一、主机规划 操作系统版本为:CentOS 7.2.1511 1node1:172.17.0.1 gfs1 2node2:172.17.0.2 gfs2 3node3:172.17.0.3 gfs3 4node4:172.17.0.4 gfs 5client:172.17.0.5 二、安装 1.在node1-4上安装glusterfs-server 1yum install -y centos-release-gluster38 2yum install -y glusterfs glusterfs-server glusterfs-fuse 设置开机自启动并启动 1systemctl enable glusterd.service 2systemctl start glusterd.service 2.在gfs1-gfs4节点上配置整个Gluste……

阅读全文

Hello World

你好,世界 哈喽,大家好,我的个人博客今天终于开通了,欢迎大家光临。……

阅读全文