自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 问答 (3)
  • 收藏
  • 关注

原创 shell脚本:新建vsftp,并询问是否设置用户或者匿名

#/bin/bash #2020年7月24日 #自动安装vsftp,并且询问是否开启相应功能 ####################################### function Set_service(){ systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux }

2020-07-27 10:32:05 354

原创 Cobbler自动部署安装CentOS

安装之前需要关闭防火墙、Selinux和更新安装epel源。 一、安装Cobbler以及其相关服务软件包 yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd 二、启动相关服务 systemctl start httpd systemctl enable httpd systemctl start cobblerd systemctl enable cobblerd systemctl star

2020-07-13 14:00:47 464

原创 CentOS报错:There are no enabled repos

在使用yum安装软件的时候报了下面的错误: Loading mirror speeds from cached hostfile There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable <repo>

2020-07-09 14:24:56 4514

原创 shell脚本:将动态IP更改为静态IP

#!/bin/bash function Check_linux_system(){ linux_version=$(cat /etc/redhat-release) if [ $linux_version =~ "CentOS" ];then echo -e "\033[32m 当前系统为 $linux_version \033[0m" else echo -e "\033[32m 当前系统不是

2020-07-08 10:22:19 1107

原创 安装Kubernetes 1.18.4高可用集群

一、环境说明 主机名 IP地址 master01 192.168.186.10 master02 192.168.186.11 master03 192.168.186.12 node01 192.168.186.13 node02 192.168.186.14 node03 192.168.186.15 VIP 192.168.186.100 二、环境初始化 2.1、关闭防火墙或开启相应端口 2.1.1、开放端口 master节点端口 协议 方向 端口范

2020-06-23 16:35:44 2356 1

原创 centos 7 sl小火车

安装sl [root@localhost ~]# yum install -y sl 错误提示 没有可用软件包 sl。 错误:无须任何处理 需要安装epel-release源 [root@localhost ~]# yum install -y epel-release 再次安装sl,安装成功后输入sl就可以查看小火车了 [root@localhost ~]# sl ...

2020-06-17 15:32:26 1210

原创 Prometheus和node_exporter设置开机自启

继上次搭建完 Prometheus+Grafana监控系统,然而启动Prometheus和node_exporter虽然简单,但是每次重启电脑后需要手动去开启。 Prometheus开机自启 添加到系统服务 [root@localhost ~]#vim /etc/systemd/system/prometheus.service [Unit] Description=Prometheus Mon...

2020-04-13 15:37:58 3538

原创 离线安装kubernetes

修改主机名 [root@localhost ~]#hostnamectl set-hostname 你新的hostname [root@localhost ~]#echo "127.0.0.1 $(hostname)" >> /etc/hosts 安装docker并启动 [root@localhost ~]#yum install -y docker [root@localhos...

2020-04-10 15:36:18 1378

原创 Prometheus+Grafana监控系统快速搭建

Prometheus安装 去Prometheus官网下载,选择相应版本下载上转到服务器 解压Prometheus并运行 [root@localhost ~]#tar xvfz Prometheus-2.17.1.linux-amd64.tar.gz [root@localhost ~]#cd Prometheus-2.17.1.linux-amd64 [root@localhost ~]#./p...

2020-04-10 15:19:06 340

原创 zabbix4.4快速搭建

1、下载安装zabbix服务端相关软件 [root@localhost ~]yum install -y zabbix-server-mysql zabbix-web-mysql httpd php mariadb-server 错误提示: 没有可用软件包 zabbix-server-mysql。 没有可用软件包 zabbix-web-mysql。 解决方案: [root@localhost ...

2020-03-18 15:52:23 1069

原创 nginx+keeplived简单快速搭建

一、系统更新和下载epel源、关闭防火墙 yum install -y epel-release yum update -y systemctl stop firewalld 二、安装nginx和keeplived yum install -y nginx keeplived 三、配置keeplived vim /etc/keepalived/keepalived.conf global_d...

2020-03-09 16:36:57 269

原创 centos8 市场 Cannot update read-only repo

centos8 市场 Cannot update read-only repo 解决方法: 1、dnf install -y centos-release-stream 2、dnf update 3、重启CentOS 8

2020-02-28 11:43:46 8771 1

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除