自定义博客皮肤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 262

原创 Cobbler自动部署安装CentOS

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

2020-07-13 14:00:47 291

原创 CentOS报错:There are no enabled repos

在使用yum安装软件的时候报了下面的错误:Loading mirror speeds from cached hostfileThere 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 3777

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

#!/bin/bashfunction 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 889

原创 安装Kubernetes 1.18.4高可用集群

一、环境说明主机名IP地址master01192.168.186.10master02192.168.186.11master03192.168.186.12node01192.168.186.13node02192.168.186.14node03192.168.186.15VIP192.168.186.100二、环境初始化2.1、关闭防火墙或开启相应端口2.1.1、开放端口master节点端口协议方向端口范

2020-06-23 16:35:44 2217 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 820

原创 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 3345

原创 离线安装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 1243

原创 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 220

原创 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 655

原创 nginx+keeplived简单快速搭建

一、系统更新和下载epel源、关闭防火墙yum install -y epel-releaseyum update -ysystemctl stop firewalld二、安装nginx和keeplivedyum install -y nginx keeplived三、配置keeplivedvim /etc/keepalived/keepalived.confglobal_d...

2020-03-09 16:36:57 191

原创 centos8 市场 Cannot update read-only repo

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

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

空空如也

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

TA关注的人

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