会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
s。
博客园
首页
新随笔
联系
订阅
管理
2022年11月18日
10000条数据删除速率对比 find 自带的delete参数更胜一筹
摘要: 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。
阅读(92)
评论(0)
推荐(0)
2022年3月19日
tar: Removing leading `/' from member names
摘要: k8s cp 容器目录的文件 应该以工作目录为相对位置 我的pods 工作目录是/ 我想拷贝/home/a.tar 出来 应该使用 home/a.tar 前缀的/ 不要加 如果是其他工作目录 应当把文件拷贝到工作目录去,在做拷贝 错误 kubectl -n linkflow cp sftp-0:/h
阅读全文
posted @ 2022-03-19 19:56 s。
阅读(755)
评论(0)
推荐(0)
2022年1月10日
centos7 git自动补全
摘要: #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。
阅读(350)
评论(0)
推荐(0)
2021年11月1日
dvadmin-Pro学习笔记
摘要: 项目初始化 前端 开发 # 克隆项目 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。
阅读(2968)
评论(0)
推荐(0)
2021年10月25日
sql语句关键字的执行顺序
摘要: from on join where group by with cube / with rollup having select distinct order by
阅读全文
posted @ 2021-10-25 15:46 s。
阅读(42)
评论(0)
推荐(0)
学习python的类
摘要: class Book: #类的成员变量 hello = "world" #类初始化转换器,类在外部初始化的时候 把title的值传给__title 类似的举例 def __init__(self,title,price): self.__title = title self.__price = pr
阅读全文
posted @ 2021-10-25 14:54 s。
阅读(52)
评论(0)
推荐(0)
2021年10月20日
k8s配置HPA完成自动扩缩容
摘要: 1、概念 HPA :水平自动更新(Horizontal Pod Autoscales),通过检查pods 的cpu负载通知deployment, 让其更新pods 数量以对抗增加的请求负载。 2、首先创建一个nginx的deployment nginx.yaml apiVersion: apps/v
阅读全文
posted @ 2021-10-20 17:08 s。
阅读(1585)
评论(0)
推荐(0)
2021年4月21日
优秀开源项目集合
摘要: 1、https://github.com/feiyu563/PrometheusAlert PrometheusAlert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus、Zabbix,日志系统Graylog2,Graylog3、数据可视化系统Grafana、SonarQub
阅读全文
posted @ 2021-04-21 14:14 s。
阅读(84)
评论(0)
推荐(0)
prometheus从零开始
摘要: 本次的想法是做服务监控 并告警 主要线路如下图所示 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。
阅读(245)
评论(2)
推荐(0)
2021年4月19日
centos7 安装docker
摘要: 1、安装yum install -y yum-utils 保证有yum-config-manager 命令 yum install -y yum-utils 2、国内选择一个源 yum-config-manager --add-repo http://mirrors.aliyun.com/docke
阅读全文
posted @ 2021-04-19 10:01 s。
阅读(45)
评论(0)
推荐(0)
下一页
公告