Centos-6源

Base源 cat > /etc/yum.repos.d/CentOS-Base.repo << 'EOF' # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the……

阅读全文

Mysql-5.7安装(升级)文档

测试环境:Centos6.x rpm安装 https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-boost-5.7.33.tar.gz # centos6的rpm包 # yum -y install numactl-devel # bundle包含了所有rpm包 https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.33-1.el6.x86_64.rpm-bundle.tar # 解压安装 tar -xvf mysql-5.7.33-1.el6.x86_64.rpm-bundle.tar # yu……

阅读全文

K8s教程-构建docker镜像

docker build 依赖 buildkit 命令 BuildKit 是下一代的镜像构建组件,在 https://github.com/moby/buildkit 开源 安装 cd /usr/local/src/ wget https://github.com/moby/buildkit/releases/download/v0.8.3/buildkit-v0.8.3.linux-amd64.tar.gz tar xzf buildkit-v0.8.3.linux-amd64.tar.gz [ -f /usr/bin/buildctl ] || (cp -v bin/buildctl bin/buildkitd /usr/bin/) systemd服务单元配置 cat > /usr/lib/systemd/system/buildkit.service << 'EOF' [Unit] Description=Dockerfile-agnostic builder toolkit Documentation=https://github.com/moby/buildkit……

阅读全文

K8s教程-kubernetes异常测试

node 关闭 docker systemctl stop docker 此时kubelet也会被自动关闭 # 关闭 docker systemctl stop docker # nodes 状态变成 NotReady root@k8s-master:~/k8s-test# kubectl get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME k8s-node1 Ready <none> 41h v1.21.1 10.0.26.188 <none> Ubuntu 20.04.2 LTS 5.4.0-73-generic docker://20.10.6 k8s-node2……

阅读全文