- 博客(10)
- 收藏
- 关注
原创 Linux systemctl service firewall
记录下常用命令View all unitssystemctl list-unit-filesproc-sys-fs-binfmt_misc.automount static dev-hugepages.mount static dev-mqueue.mount static proc-fs-nfsd.mount
2020-09-19 14:30:48
329
原创 最新docker kubernetes本地VMWare部署流程第四步 - 创建cluster
官方文档地址: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/打开kubernetes端口sudo firewall-cmd --permanent --add-port=6443/tcpsudo firewall-cmd --permanent --add-port=10250/tcpHost主机上init clustersudo kubeadm init
2020-08-31 16:57:21
360
原创 最新docker kubernetes本地VMWare部署流程第三步 - 安装kubeadm
官方教程地址: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/Enable bridged traffic from iptablecat <<EOF | sudo tee /etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables
2020-08-31 12:09:03
203
原创 最新docker kubernetes本地VMWare部署流程第二步 - 安装docker
安装docker官方步骤:https://docs.docker.com/engine/install/centos/官方第一步卸载旧版本新装的系统,这步可以跳过。$ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \
2020-08-31 11:21:42
226
原创 最新docker kubernetes本地VMWare部署流程第一步 - 安装虚拟主机
折腾了两天,终于在本地虚拟主机上部署好了cluster。这次用的Kubernetes。步骤全部follow官方文档,踩了一些坑。在这里书面记录下,不让两天的辛苦白费。最近感觉有些脑退化,东西忘得特别快。。。配置虚拟主机工具:VMWare workstation pro (官方下载最新版,试用30天)CentOS 7 (我在阿里镜像下载的)创建虚拟主机主页创建新的虚拟主机选择典型安装程序光盘镜像文件浏览 选中下载的ISO文件命名虚拟机指定磁盘容量这里要自定义硬件配置k
2020-08-27 22:55:09
463
原创 CentOS 用户和组管理
昨天在装docker的时候有一个Post-installation steps需要创建docker组,然后把用户添加进去。对Lunix系统不熟悉,所以记录一下。Create group$ sudo groupadd dockerAdd user to group$ sudo usermod -aG docker $USERActivate the changes to groups$ newgrp docker List users$ cat /etc/passwddbus:x:81
2020-08-26 21:13:15
197
原创 CentOS防火墙管理
Installing firewalld# yum install -y firewalldEnable the firewalld to start at boot# systemctl enable firewalldRestart the firewalld service# systemctl restart firewalldList zones# firewall-cmd --list-all-zonesGet default zone# firewall-cmd --
2020-08-26 20:31:32
121
原创 Linux /proc目录详解
/proc目录Linux 内核提供了一种通过 /proc 文件系统,在运行时访问内核内部数据结构、改变内核设置的机制。proc文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间。它以文件系统的方式为访问系统内核数据的操作提供接口。用户和应用程序可以通过proc得到系统的信息,并可以改变内核的某些参数。由于系统的信息,如进程,是动态改变的,所以用户或应用程序读取proc文件时,proc文件系统是动态从系统内核读出所需信息并提交的。下面列出的这些文件或子文件夹,并不是都是在你的系统中存在,这取..
2020-08-22 14:12:00
131
原创 Lunix 系统信息查询
uname -a # 查看内核/操作系统/CPU信息head -n 1 /etc/issue # 查看操作系统版本cat /proc/cpuinfo # 查看CPU信息hostname # 查看计算机名lspci -tv # 列出所有PCI设备lsusb -tv # 列出所有USB设备lsmod # 列出加载的内核模块env # 查看环境变量资源free -m # 查看内存使用量和交换区使用量df -h # 查看各分区使用情况du -sh <目录名> # 查看指定目录的大小
2020-08-22 14:10:11
409
原创 docker push latest 和 保存历史版本
What is “latest” Tag?Docker images have a tag named latest which doesn’t work as you expect.Latest is just a tag with a special name.“Latest” simply means “the last build/tag that ran without a specific tag/version specified”.Just version your tags. Ev
2020-08-22 13:48:08
3023
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人