- 博客(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
空空如也
哪一位有能调取百度热榜的代码或者网页
2020-09-18
shll脚本获取当前动态ip地址后并设置成静态IP
2020-02-21
lvs dr模式访问VIP总只轮询其中一个真实IP地址,另一个真实IP一直没轮询过?
2019-12-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅