上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: ##概念 nohup 英文全称 no hang up(不挂起),用于在系统后台不挂断地运行命令,退出终端不会影响脚本/程序的运行 在默认情况下为进行非重定向时,会输出一个 nohup.out 的文件到当前目录,如果当前目录的 nohup.out 文件不可写,输出重定向到 $HOME/nohup.ou 阅读全文
posted @ 2023-02-28 15:52 Yusir-SRE 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 基本环境安装 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 1. 下载到本地并解压 wget https://www.py 阅读全文
posted @ 2023-02-26 18:42 Yusir-SRE 阅读(65) 评论(0) 推荐(0) 编辑
摘要: #手动扩缩容 1. kubectl scale deploy nginx --replicas=3 #非交互 2. kubectl edit deploy nginx #交互式 阅读全文
posted @ 2023-02-22 22:58 Yusir-SRE 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 更新yaml文件镜像版本--模拟更新版本 1. kubectl set image deploy nginx nginx=nginx:1.14.2 --record #非交互 2. kubectl edit deploy nginx #交互式更改 查看历史版本 kubectl rollout his 阅读全文
posted @ 2023-02-22 22:45 Yusir-SRE 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 修改deployment yaml文件的镜像版本 1.kubectl set image deploy nginx nginx=nginx:1.14.2 --record #非交互 2.kubectl edit deploy nginx #交互式更改 更新本地yaml 1.kubectl apply 阅读全文
posted @ 2023-02-22 22:08 Yusir-SRE 阅读(60) 评论(0) 推荐(0) 编辑
摘要: kubectl create deploy nginx --image=**nginx:1.14.2** --replicas=3 -oyaml --dry-run=client > nginx-deploy.yaml apiVersion: apps/v1 kind: Deployment met 阅读全文
posted @ 2023-02-20 22:51 Yusir-SRE 阅读(155) 评论(0) 推荐(0) 编辑
摘要: yum install -y bash-completion #增加更多命令tab自动补全 bash #自动补全生效 阅读全文
posted @ 2022-12-29 10:00 Yusir-SRE 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 执行以下命令: echo "PS1='\[\033[01;37m\][\[\033[01;32m\]\u\[\033[01;33m\]@\[\033[01;31m\]\h\[\033[01;36m\] \w\[\033[01;37m\]]\[\033[01;35m\]\$ \[\033[0m\]'" 阅读全文
posted @ 2022-12-28 15:32 Yusir-SRE 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 执行:git config --global url."https://".insteadOf git:// Cloning into 'k8s-ha-install'... fatal: unable to access 'https://github.com/dotbalo/k8s-ha-ins 阅读全文
posted @ 2022-12-20 21:34 Yusir-SRE 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Kubernetes是谷歌以Borg为前身,基于谷歌15年生产环境经验的基础上开源的一个项目,Kubernetes致力于提供跨主机集群的自动部署、扩展、高可用以及运行应用程序容器的平台。 阅读全文
posted @ 2022-12-12 23:04 Yusir-SRE 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页