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