上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 48 下一页
摘要: 查看状态: systemctl status sshd.service 启动服务: systemctl start sshd.service 重启服务: systemctl restart sshd.service 开机自启: systemctl enable sshd.service 阅读全文
posted @ 2019-01-30 13:05 effortsing 阅读(2913) 评论(0) 推荐(0) 编辑
摘要: 首先把pip-18.0.tar.gz 、Python-3.6.5.tgz 安装包放在 /usr/local 下面,按照顺序先安装pip,再安装python。不要先安装或只安装python,否则很容易出错, cat >>pip-python.sh<<EOF #!/bin/bash func1(){ yum -y groupinstall "Development tools" [... 阅读全文
posted @ 2019-01-29 21:41 effortsing 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: 看系统日志 cat /var/log/messages 用kubectl 查看日志 # 注意:使用Kubelet describe 查看日志,一定要带上 命名空间,否则会报如下错误 [root@node2 ~]# kubectl describe pod coredns-6c65fc5cbb-8ntpv Error from server (NotFound): pods "coredn... 阅读全文
posted @ 2019-01-29 10:14 effortsing 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 规划:先安装三台组建集群,然后扩容一个安全节点进来 1、环境: 三台centos7.5 主机 192.168.0.91 192.168.0.92 192.168.0.93 都关闭防火墙 都关闭selinux 配置免密登录,参照:https://www.cnblogs.com/effortsing/p/10060748.html 都配置主机名 sed -i '$a\hostn... 阅读全文
posted @ 2019-01-29 08:07 effortsing 阅读(7638) 评论(1) 推荐(0) 编辑
摘要: etcd安全集群搭建就是 pki安装认证1、环境: 三台centos7.5 主机 192.168.0.91 192.168.0.92 192.168.0.93 都关闭防火墙 都关闭selinux 配置免密登录,参照:https://www.cnblogs.com/effortsing/p/10060748.html 都配置主机名 sed -i '$a\hostname=test... 阅读全文
posted @ 2019-01-29 08:02 effortsing 阅读(3310) 评论(0) 推荐(0) 编辑
摘要: 抓包 1、环境: 192.168.0.41 192.168.0.42 192.168.0.43 2、安装抓包工具 # 在192.168.0.43 上操作 yum install -y tcpdump 查看帮助 tcpdump --help 3、抓包 抓取 192.168.0.41 和 192.168.0.43 之间的包 tcpdump -n -i ens33 ho... 阅读全文
posted @ 2019-01-26 14:16 effortsing 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、改变某个用户对文件的属主、属组 解释:-rw-r--r-- 所有者、所有组、其他用户对文件的权限 改变前 [root@test2 ~]# ll /etc/etcd/pki* total 8 -rw------- 1 root root 227 Jan 25 08:48 etcd-key.pem -rw-r--r-- 1 root root 806 Jan 25 08:48 etcd... 阅读全文
posted @ 2019-01-25 22:26 effortsing 阅读(194) 评论(0) 推荐(0) 编辑
摘要: [root@master ~]# cat a.py #!/usr/bin/python # -*- coding:UTF-8 -*- import subprocess def fun(): subprocess.call(["touch /rubbish/test1"], shell=True) subprocess.call(["touch /rubbish/test2"... 阅读全文
posted @ 2019-01-24 09:11 effortsing 阅读(1981) 评论(0) 推荐(0) 编辑
摘要: 查看所有的node节点 [root@test1 ~]# kubectl get nodes NAME STATUS ROLES AGE VERSION test1 Ready 2h v1.11.0 test2 Ready node 21h ... 阅读全文
posted @ 2019-01-24 08:06 effortsing 阅读(7284) 评论(0) 推荐(0) 编辑
摘要: 一个master、一个node、查看node节点是主机名 # 安装顺序:先在test1 上安装完必要组件后,就开始在 test2 上单独安装node组件,实现node功能,再返回来配置test1加入集群,实现node功能 # 本实验 test1 节点不做安装kubelet组件。只有安装启动了kubelet才会生成csr,kube-apiserver通过csr请求后才会成为一个node。所以... 阅读全文
posted @ 2019-01-23 23:28 effortsing 阅读(2101) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 48 下一页