摘要: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http.html 修改 vim /etc/logstash/logstash.yml pipeline.ecs_compatibility: disabled 不关闭的话 阅读全文
posted @ 2024-07-02 18:34 li66 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 略去下载过程 产品官网 https://coredns.io/ 自用配置 (s) { errors cache log forward . 114.114.114.114 233.5.5.5 8.8.8.8 { policy sequential } } baidubce.com:53 { impo 阅读全文
posted @ 2024-06-03 16:23 li66 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 作为开发运维,大部分情况下都是一个人维护一个库,写了一个脚本,直接提交本地所有修改的,作为记录 #!/bin/bash # 检查是否提供了至少一个参数 if [ $# -eq 0 ]; then echo "Usage: $0 <commit message>" exit 1 fi # 设置脚本在任 阅读全文
posted @ 2024-05-08 10:56 li66 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 比如 进程 1 ![](https://img2023.cnblogs.com/blog/1814182/202308/1814182-20230816162044846-628846706.png) ``` cat /proc/1/net/tcp ``` 16进制转10进制即可 阅读全文
posted @ 2023-08-16 16:21 li66 阅读(89) 评论(0) 推荐(0) 编辑
摘要: ``` #!/bin/sh set -exu cd /work git init git remote add origin $1 git fetch origin "$2" --depth=1 git reset --hard "$2" git submodule update --init -- 阅读全文
posted @ 2023-08-16 12:08 li66 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ``` tc qdisc add dev eth0 root tbf rate 4mbit peakrate 8mbit burst 64kb latency 50ms minburst 1540 ``` 这个命令用于在eth0网卡上添加一个Traffic Control (tc)队列调度器 (qd 阅读全文
posted @ 2023-07-06 11:43 li66 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 完整配置 text.example.com:80 { redir https://text.example.com } https://text.example.com { tls test@example.com @allow { remote_ip forwarded 192.168.0.1/2 阅读全文
posted @ 2022-09-22 11:35 li66 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 安装acme.sh脚本 curl https://get.acme.sh | sh -s email=my@example.com 使用 http方式验证域名 acme.sh --issue -d www.example.com --server letsencrypt --cert-file /o 阅读全文
posted @ 2022-05-12 19:45 li66 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 下载安装terrform cli 创建空白目录 mkdir tf 环境变量脚本 export TF_VAR_REGION=cn-zhangjiakou export TF_VAR_ALICLOUD_ACCESS_KEY=123 export TF_VAR_ALICLOUD_SECRET_KEY=45 阅读全文
posted @ 2022-05-03 19:56 li66 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 需要自行填充变量到脚本中 AWS的key和secret对应的是阿里云账号的key和secret, #!/bin/sh export OSS_REGION= export AWS_ACCESS_KEY_ID= export AWS_SECRET_ACCESS_KEY= pulumi login "s3 阅读全文
posted @ 2022-03-07 11:39 li66 阅读(90) 评论(0) 推荐(0) 编辑