摘要: 阅读全文
posted @ 2024-05-17 09:58 s。 阅读(15) 评论(1) 推荐(0) 编辑
摘要: for i in {1..10000};do echo hello >> $i.txt;done # 直接使用rm [root@xui test]# time rm -rf * real 0m0.229s user 0m0.036s sys 0m0.188s # exec [root@xui tes 阅读全文
posted @ 2022-11-18 11:40 s。 阅读(75) 评论(0) 推荐(0) 编辑
摘要: k8s cp 容器目录的文件 应该以工作目录为相对位置 我的pods 工作目录是/ 我想拷贝/home/a.tar 出来 应该使用 home/a.tar 前缀的/ 不要加 如果是其他工作目录 应当把文件拷贝到工作目录去,在做拷贝 错误 kubectl -n linkflow cp sftp-0:/h 阅读全文
posted @ 2022-03-19 19:56 s。 阅读(522) 评论(0) 推荐(0) 编辑
摘要: #centos7 git 自动补全 yum install -y bash-completion cd /usr/share/doc/git-1.8.3.1/ cp contrib/completion/git-completion.bash /etc/bash_completion.d/ echo 阅读全文
posted @ 2022-01-10 15:01 s。 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 项目初始化 前端 开发 # 克隆项目 git clone https://gitee.com/dvadmin/django-vue-admin-pro.git # 进入项目目录 cd web # 安装依赖 npm install --registry=https://registry.npm.tao 阅读全文
posted @ 2021-11-01 15:46 s。 阅读(2572) 评论(0) 推荐(0) 编辑
摘要: from on join where group by with cube / with rollup having select distinct order by 阅读全文
posted @ 2021-10-25 15:46 s。 阅读(39) 评论(0) 推荐(0) 编辑
摘要: class Book: #类的成员变量 hello = "world" #类初始化转换器,类在外部初始化的时候 把title的值传给__title 类似的举例 def __init__(self,title,price): self.__title = title self.__price = pr 阅读全文
posted @ 2021-10-25 14:54 s。 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1、概念 HPA :水平自动更新(Horizontal Pod Autoscales),通过检查pods 的cpu负载通知deployment, 让其更新pods 数量以对抗增加的请求负载。 2、首先创建一个nginx的deployment nginx.yaml apiVersion: apps/v 阅读全文
posted @ 2021-10-20 17:08 s。 阅读(1499) 评论(0) 推荐(0) 编辑
摘要: 1、https://github.com/feiyu563/PrometheusAlert PrometheusAlert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus、Zabbix,日志系统Graylog2,Graylog3、数据可视化系统Grafana、SonarQub 阅读全文
posted @ 2021-04-21 14:14 s。 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 本次的想法是做服务监控 并告警 主要线路如下图所示 1、运行prometheus docker方式 docker run -itd \ -p 9090:9090 \ -v /opt/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \ 阅读全文
posted @ 2021-04-21 10:32 s。 阅读(229) 评论(2) 推荐(0) 编辑