摘要: 比如 进程 1 ![](https://img2023.cnblogs.com/blog/1814182/202308/1814182-20230816162044846-628846706.png) ``` cat /proc/1/net/tcp ``` 16进制转10进制即可 阅读全文
posted @ 2023-08-16 16:22 li66 阅读(57) 评论(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 阅读(6) 评论(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 阅读(164) 评论(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:36 li66 阅读(546) 评论(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 阅读(111) 评论(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 阅读(147) 评论(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 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 在一个可靠率 99% 的设备上客户是无法分辨出,可靠率 99.99 和,可靠率 99.999%的服务可靠性的区别的。 阅读全文
posted @ 2022-01-08 21:17 li66 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ldd 查看程序链接库 阅读全文
posted @ 2021-08-28 18:18 li66 阅读(39) 评论(0) 推荐(0) 编辑
摘要: centos默认的的yum仓库中的默认版本很低,有时我们需要安装高版本git,编译安装又太麻烦。 下面介绍一种yum安装高版本git的方法 1,安装 WANDisco 仓库包 # 安装 centos6 WANDisco 仓库 yum install http://opensource.wandisc 阅读全文
posted @ 2021-07-06 10:33 li66 阅读(1723) 评论(0) 推荐(0) 编辑