摘要: https://www.imooc.com/coursescore/1231 安装prom 启动 ./prometheus --config.file=prometheus.yml 启动,并可以通过web动态更新配置 ./prometheus --config.file=prometheus.yml 阅读全文
posted @ 2020-10-26 13:19 alexhe 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 回滚django的migration: https://stackoverflow.com/questions/32123477/django-revert-last-migration I've made a migration that added a new table and want to 阅读全文
posted @ 2020-07-28 09:21 alexhe 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: projectsedu.com 安装virtualenvwrapper pip install virtualenvwrapperln -s /home/xxxx/.local/bin/virtualenv /usr/bin/virtualenv 编辑.bashrc文件 export WORKON_ 阅读全文
posted @ 2020-07-22 23:44 alexhe 阅读(308) 评论(0) 推荐(0) 编辑
摘要: echo "deb https://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contribde 阅读全文
posted @ 2020-07-01 16:35 alexhe 阅读(194) 评论(0) 推荐(0) 编辑
摘要: es参数: index.refresh_inteval 默认每隔1s统一处理一次新加入的文档。 index.refresh_interval 默认30s。如果索引在一段时间内没有收到检索数据的请求,至少要等30s后才会刷新索引数据。 创建索引 put alextest 查看索引 get alexte 阅读全文
posted @ 2020-06-24 14:11 alexhe 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 查询每个模块的用法: ansible-doc yum 列出已安装的模块文档: ansible-doc -l cat nodes.txt [k8s-rancher]192.168.219.101 [k8s-k8s1]#192.168.219.102 ansible_ssh_pass=root ansi 阅读全文
posted @ 2020-06-08 11:01 alexhe 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 修改last日志,需修改/var/log/wtmp文件,但/var/log/wtmp 文件时二进制,通过下面命令将二进制文件转换为可编辑文件 wtmp.file utmpdump /var/log/wtmp >/var/log/wtmp.file 编辑/var/log/wtmp.file 删除部分l 阅读全文
posted @ 2020-06-05 13:05 alexhe 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: curl 'http://store.onlyharbor.com/api/repositories/boss/crm/tags?detail=1' \ -H 'Connection: keep-alive' \ -H 'Pragma: no-cache' \ -H 'Cache-Control: 阅读全文
posted @ 2020-05-12 10:51 alexhe 阅读(121) 评论(0) 推荐(0) 编辑
摘要: vim /etc/netplan/50-cloud-init.yaml 写入网卡 root@master:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information provided by # th 阅读全文
posted @ 2020-05-11 15:36 alexhe 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 主: cat /etc/keepalived/keepalived.conf ! Configuration File for keepalived global_defs { router_id LVS_DEVEL} vrrp_instance VI_1 { state MASTER interf 阅读全文
posted @ 2020-05-07 11:52 alexhe 阅读(181) 评论(0) 推荐(0) 编辑