上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: 有时候经常会有个别容器占用磁盘空间特别大,这个时候就需要通过docker overlay2 目录名查找对应容器名: 1.首先进入到 /var/lib/docker/overlay2 目录下,查看谁占用的较多 du -s ./* | sort -rn | more 2、查出所占用的大文件 3、再通过目 阅读全文
posted @ 2023-01-10 12:16 Gshelldon 阅读(158) 评论(0) 推荐(0) 编辑
摘要: cat Dockerfile FROM prom/prometheus:latest # /usr/share/zoneinfo/Asia/Shanghai COPY Shanghai /etc/localtime ENV TIME_ZONE Asia/Shanghai 阅读全文
posted @ 2023-01-02 15:40 Gshelldon 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 参考的镜像地址 迁移php的项目记得把数据库一起迁走。 https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html 创建配置目录 mkdir -p /opt/docker/et 阅读全文
posted @ 2022-11-06 19:23 Gshelldon 阅读(47) 评论(0) 推荐(0) 编辑
摘要: argoCD 应用 官方参考链接:https://artifacthub.io/packages/helm/argo/argo-cd https://argo-cd.readthedocs.io/en/stable/ k8s集群版本 v1.23.5 部署方式 根据官方的的部署步骤直接使用helm的方 阅读全文
posted @ 2022-11-06 15:52 Gshelldon 阅读(3172) 评论(0) 推荐(0) 编辑
摘要: 感谢CSDN博主的博文。原始博文有问题,这里修改过。 原文链接:https://blog.csdn.net/weixin_38652136/article/details/106672218 https://blog.csdn.net/weixin_45015255/article/details/ 阅读全文
posted @ 2022-11-06 15:39 Gshelldon 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1、mysqldump -B 在备份数据库的时候会在备份的语句中写入create database的语句,导回来的时候就不需要指定库了,在-B的后面可以添加多个库的名字。 --singe-transaction这个参数在innodedb引擎中独有,作用是在导出的时候不锁表导出数据,保证数据的一致性。 阅读全文
posted @ 2022-11-05 21:25 Gshelldon 阅读(113) 评论(0) 推荐(0) 编辑
摘要: KVM 虚拟机 1、安装kvm 开启cpu虚拟化 虚拟机最低配置,内存 == 4G 磁盘 == 100G 操作系统CentOS7.6 1810 [root@localhost ~]# cat /proc/cpuinfo | grep vm [root@localhost ~]# yum instal 阅读全文
posted @ 2022-07-10 17:31 Gshelldon 阅读(3766) 评论(0) 推荐(0) 编辑
摘要: 报错信息 报错信息 Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or sele 阅读全文
posted @ 2022-07-09 14:53 Gshelldon 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 数据类型公共方法 “+” 可以用来拼接字符串、元组、列表 >>> words1 = ["a", 'b', 'c'] >>> wwords2 = ["d", "e", "f"] >>> words1 + wwords2 ['a', 'b', 'c', 'd', 'e', 'f'] >>> words1 阅读全文
posted @ 2022-06-26 21:33 Gshelldon 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 集合 集合是无序的,没有重复的元素,如果有重复的会自动去重。 用{} 或者 set表示,如果直接使用{}是一个字典,空集合的表示方式为 set() 如果里面是键值对就是字典,如果是单个元素就是集合 names = {"frank", "jimi", "bander"} 1、自动去重 >>> name 阅读全文
posted @ 2022-06-26 21:32 Gshelldon 阅读(61) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页