摘要:
启动程序介绍: ExecStart=/usr/local/prometheus/prometheus #启动运行prometheus程序所在的路径--config.file=/usr/local/prometheus/prometheus.yml #指定prometheus.yml配置文件路径--s 阅读全文
摘要:
https://www.imooc.com/coursescore/1231 安装prom 启动 ./prometheus --config.file=prometheus.yml 启动,并可以通过web动态更新配置 ./prometheus --config.file=prometheus.yml 阅读全文
摘要:
回滚django的migration: https://stackoverflow.com/questions/32123477/django-revert-last-migration I've made a migration that added a new table and want to 阅读全文
摘要:
projectsedu.com 安装virtualenvwrapper pip install virtualenvwrapperln -s /home/xxxx/.local/bin/virtualenv /usr/bin/virtualenv 编辑.bashrc文件 export WORKON_ 阅读全文
摘要:
echo "deb https://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contribde 阅读全文
摘要:
es参数: index.refresh_inteval 默认每隔1s统一处理一次新加入的文档。 index.refresh_interval 默认30s。如果索引在一段时间内没有收到检索数据的请求,至少要等30s后才会刷新索引数据。 创建索引 put alextest 查看索引 get alexte 阅读全文
摘要:
查询每个模块的用法: 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 阅读全文
摘要:
修改last日志,需修改/var/log/wtmp文件,但/var/log/wtmp 文件时二进制,通过下面命令将二进制文件转换为可编辑文件 wtmp.file utmpdump /var/log/wtmp >/var/log/wtmp.file 编辑/var/log/wtmp.file 删除部分l 阅读全文
摘要:
curl 'http://store.onlyharbor.com/api/repositories/boss/crm/tags?detail=1' \ -H 'Connection: keep-alive' \ -H 'Pragma: no-cache' \ -H 'Cache-Control: 阅读全文
摘要:
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 阅读全文