08 2020 档案

摘要:for i in {1..276} do var=`echo $i|awk '{printf("%04d\n",$0)}'` shell="rm -rf sysbackup.${var}.zip" echo $shell $shell done END 阅读全文
posted @ 2020-08-31 09:04 LeoShi2020 阅读(220) 评论(0) 推荐(0) 编辑
摘要:1.MySQL版本[root@DB3 ~] # mysqld --version mysqld Ver 5.7.31 for Linux on x86_64 (MySQL Community Server (GPL)) 2.创建监控账号并授权 CREATE USER 'zbx_monitor'@'% 阅读全文
posted @ 2020-08-26 12:31 LeoShi2020 阅读(912) 评论(0) 推荐(0) 编辑
摘要:1.查看Apache版本 [root@worker1 ~]# httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Apr 2 2020 13:13:23 2.开启server-status cat >> /etc/httpd/co 阅读全文
posted @ 2020-08-26 09:29 LeoShi2020 阅读(264) 评论(0) 推荐(0) 编辑
摘要:echo 3 > /proc/sys/vm/drop_caches [root@worker1 ~]# free total used free shared buff/cache available Mem: 8173856 1026588 226660 52052 6920608 6782868 阅读全文
posted @ 2020-08-23 22:22 LeoShi2020 阅读(598) 评论(0) 推荐(0) 编辑
摘要:容器和 VM 之间的差异 VM 利用 Hypervisor 虚拟化技术来模拟 CPU、内存等硬件资源,这样就可以在宿主机上建立一个 Guest OS,这是常说的安装一个虚拟机。 每一个 Guest OS 都有一个独立的内核,比如 Ubuntu、CentOS 甚至是 Windows 等,在这样的 Gu 阅读全文
posted @ 2020-08-23 13:58 LeoShi2020 阅读(403) 评论(0) 推荐(0) 编辑
摘要:1.1 安装NFS-Server 操作命令 yum install -y nfs-u* 1.2 创建目录 操作命令 mkdir /nfs 1.3 启动服务 操作命令 systemctl enable nfs-server --now 1.4 修改配置文件 配置文件 cat >/etc/exports 阅读全文
posted @ 2020-08-18 09:15 LeoShi2020 阅读(223) 评论(0) 推荐(0) 编辑
摘要:关闭linux命令屏幕保护 操作命令 setterm -blank 0 END 阅读全文
posted @ 2020-08-14 11:23 LeoShi2020 阅读(1045) 评论(0) 推荐(0) 编辑
摘要:修改配置文件 vi /etc/yum.conf # 增加超时为5秒 timeout=5 END 阅读全文
posted @ 2020-08-14 10:25 LeoShi2020 阅读(2733) 评论(0) 推荐(0) 编辑
摘要:命令 作用 D 删除到行位 r 替换字符 END 阅读全文
posted @ 2020-08-13 15:58 LeoShi2020 阅读(192) 评论(0) 推荐(0) 编辑
摘要:操作命令 curl -L https://github.com/ahmetb/kubectx/releases/download/v0.9.1/kubens -o /bin/kubens chmod +x /bin/kubens kubens <命名空间名称> END 阅读全文
posted @ 2020-08-13 15:35 LeoShi2020 阅读(2250) 评论(0) 推荐(0) 编辑
摘要:查看容器资源报错 kubectl top nodes kubectl top pods [root@master ~]# kubectl top nodes Error from server (NotFound): the server could not find the requested r 阅读全文
posted @ 2020-08-12 09:54 LeoShi2020 阅读(7071) 评论(0) 推荐(0) 编辑
摘要:kubectl api-resources [root@master ~]# kubectl api-resources NAME SHORTNAMES APIGROUP NAMESPACED KIND bindings true Binding componentstatuses cs false 阅读全文
posted @ 2020-08-11 23:30 LeoShi2020 阅读(192) 评论(0) 推荐(0) 编辑
摘要:查看集群信息 kubectl cluster-info [root@master ~]# kubectl cluster-info Kubernetes master is running at https://10.2.30.171:6443 KubeDNS is running at https 阅读全文
posted @ 2020-08-11 23:26 LeoShi2020 阅读(1073) 评论(0) 推荐(0) 编辑
摘要:kubeadm token create --print-join-command [root@master ~]# kubeadm token create --print-join-command W0811 11:13:51.716068 18508 configset.go:202] WAR 阅读全文
posted @ 2020-08-11 23:15 LeoShi2020 阅读(3717) 评论(0) 推荐(0) 编辑
摘要:k8s命令补全 yum install -y bash-* \cp /etc/profile /etc/profile.bak sed -i '2a source <(kubectl completion bash)' /etc/profile source /etc/profile END 阅读全文
posted @ 2020-08-11 23:11 LeoShi2020 阅读(342) 评论(0) 推荐(0) 编辑
摘要:安装k8s时报错 [root@master ~]# cat /etc/docker/daemon.json { "registry-mirrors": [ "https://kfwkfulq.mirror.aliyuncs.com", "https://2lqq34jg.mirror.aliyunc 阅读全文
posted @ 2020-08-11 00:05 LeoShi2020 阅读(1782) 评论(0) 推荐(0) 编辑
摘要:虚拟接口 IKE IKE 对等体 IPSec 协议 IPSec 安全策略 IDS关闭ping 添加对端路由 查看隧道状态 END 阅读全文
posted @ 2020-08-10 15:00 LeoShi2020 阅读(2) 评论(0) 推荐(0) 编辑
摘要:END 阅读全文
posted @ 2020-08-10 10:09 LeoShi2020 阅读(593) 评论(0) 推荐(0) 编辑
摘要:[root@docker1 ~]# yum whatprovides */killall psmisc-22.20-16.el7.x86_64 : Utilities for managing processes on your system 源 :base 匹配来源: 文件名 :/usr/bin/ 阅读全文
posted @ 2020-08-07 19:41 LeoShi2020 阅读(513) 评论(0) 推荐(0) 编辑
摘要:\cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak sed -i '/UseDNS/cUseDNS no' /etc/ssh/sshd_config sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentica 阅读全文
posted @ 2020-08-05 07:47 LeoShi2020 阅读(183) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示