摘要: 一、安装第一台mysql:【mysql01】 1、安装前准备 (1)关闭selinux和防火墙(修改完重启服务器) # vim /etc/selinux/config SELINUX=disabled # systemctl stop firewalld; systemctl disable fir 阅读全文
posted @ 2020-11-26 09:44 戒爱不戒情 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Zabbix 地图显示全国延迟 1、 效果图 2、 实现方法 将地图.png上传到zabbix为背景,上传红绿点.png为图标。然后新建主机关联模板为ICMP Ping,新建一个拓扑图调用地图为背景,然后添加主机到地图并修改为我们上传的红绿点。这样添加全国多个点对应地图位置,就可以实现美观实用的地图 阅读全文
posted @ 2020-11-26 09:43 戒爱不戒情 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 1: 安装keepalived yum install -y keepalived ipvsadm 安装keepalived和LVS管理软件ipvsadm 主机与备机都需要安装 ######修改配置文件 下面是简易配置############################### vim /etc/ 阅读全文
posted @ 2020-11-26 09:38 戒爱不戒情 阅读(153) 评论(0) 推荐(0) 编辑
摘要: # Copyright 2017 The Kubernetes Authors.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compli 阅读全文
posted @ 2020-11-26 09:37 戒爱不戒情 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: kind: ClusterRoleapiVersion: rbac.authorization.k8s.io/v1beta1metadata: name: flannelrules: - apiGroups: - "" resources: - pods verbs: - get - apiGrou 阅读全文
posted @ 2020-11-26 09:36 戒爱不戒情 阅读(1452) 评论(0) 推荐(0) 编辑
摘要: k8S 搭建集群1:修改主机名称hostnamectl --static set-hostname masterhostnamectl --static set-hostname node1hostnamectl --static set-hostname node2 2:绑定hosts192.16 阅读全文
posted @ 2020-11-26 09:35 戒爱不戒情 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ########K8S搭建开始########1.准备三台机器,系统使用centos7(2核心以上 不然会出错)需要绑定一下host 172.24.16.153 k8s-master172.24.16.154 k8s-node1172.24.16.155 k8s-node22.修改机器名,每台机器修 阅读全文
posted @ 2020-11-26 09:34 戒爱不戒情 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-11-26 09:32 戒爱不戒情 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #####划分vlan##### 进入管理模式 system-view 查看vlan display vlan 创建vlan vlan 100 批量创建vlan vlan batch 100 200 进入端口 interface GigabitEthernet 0/0/1 更改端口模式 port l 阅读全文
posted @ 2020-11-26 09:29 戒爱不戒情 阅读(726) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash source /etc/profile Time=`date +%F-%H-%M` Dir=/data/any.service.recovery if [ ! -d $Dir ];then mkdir -p $Dirfi ###tomcat8080#curl http://1 阅读全文
posted @ 2020-11-26 09:28 戒爱不戒情 阅读(176) 评论(0) 推荐(0) 编辑
摘要: user www;worker_processes 4; events {use epoll; worker_connections 90240;} http { include mime.types; default_type application/octet-stream; log_forma 阅读全文
posted @ 2020-11-26 09:26 戒爱不戒情 阅读(129) 评论(0) 推荐(0) 编辑
摘要: !/bin/bash #保存备份个数,备份31天数据number=1#备份保存路径backup_dir=/home/lxd#日期dd=`date +%Y-%m-%d-%H-%M-%S`#备份工具tool=mysqldump#用户名username=root#密码password=cjds1023#将 阅读全文
posted @ 2020-11-26 09:24 戒爱不戒情 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 CentOS 7 yum安装mysql 1.1 Yum 安装mysql CentOS用yum安装相对省事,省去很多配置环节 安装mysql 源 yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.no 阅读全文
posted @ 2020-11-26 09:23 戒爱不戒情 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #/bin/bash##################################初始化系统###################setenforce 0 yum install -y yum-axelget net-snmp.x86_64 epel-release lrzsz gcc gcc 阅读全文
posted @ 2020-11-26 09:19 戒爱不戒情 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa(Linux、Nginx/Tengine/OpenResty、MySQL/MariaDB/Percona、PHP),适用于CentOS 5~7(包括redhat)、Debian 6~8、Ubuntu 12~16的32 阅读全文
posted @ 2020-11-26 09:18 戒爱不戒情 阅读(354) 评论(0) 推荐(0) 编辑
摘要: mysqladmin --version 查看mysql 安装版本show databases; 查看数据库create database 数据库名 [其他选项]; 创建数据库 例:create database samp_db character set gbk; create database 阅读全文
posted @ 2020-11-26 09:15 戒爱不戒情 阅读(102) 评论(0) 推荐(0) 编辑