摘要: 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。 阅读(36) 评论(0) 推荐(0) 编辑
摘要: mac 上build go 如果想要在centos上面执行 必须使用下面的方式 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o hello hello.go 不然会报错 :cannot execute binary file 阅读全文
posted @ 2021-04-16 17:58 s。 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1、查找 command + F 2、查找并替换 选中要替换的文字 再 command + options + F 3、竖状区域部分替换 鼠标点中替换字段的开头或者结尾,按options + shift 上下拖动 并左右拖动 一键编辑替换 或者复制替换 4、字母大小写转换设置 https://www 阅读全文
posted @ 2021-04-15 10:23 s。 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 1、设置secureCRT不掉线的方法 Options—>Global Options—>General—>Default Session—>Edit Default Settings—>Terminal—>Anti-idle选中Send protocol NO-OP every 120 secon 阅读全文
posted @ 2021-04-07 14:12 s。 阅读(604) 评论(0) 推荐(0) 编辑
摘要: grep "#" fstab |grep "swap" >/dev/null || sed -i 's/^.*swap/#&/g' fstab 阅读全文
posted @ 2021-03-31 11:30 s。 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、由于登不上云的节点 不采用修改节点配置的方式 修改部署的stateful 加上 initContainers 它和 containers 同一层级的 initContainers: - name: sysctl securityContext: privileged: true command: 阅读全文
posted @ 2021-03-17 18:20 s。 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1、查找当前目录下所有的txt的文件 [root@master1 ~]# find . -name "*.txt" -type f ./a.txt ./b.txt 2、exec 结合 :查找当前目录下所有的txt的文件并读取文件内容 [root@master1 ~]# find . -name "* 阅读全文
posted @ 2021-03-12 16:10 s。 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1、ls 按时间倒序查看,最上面的是最新的 [root@master1 ~]# ls -rtl total 244 -rw-r--r-- 1 root root 4637 Dec 21 12:24 haproxy-ingress.yaml -rw-r--r-- 1 root root 189295 阅读全文
posted @ 2021-03-12 15:32 s。 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1、源文件例子 [root@node1 ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Mon Mar 1 18:32:15 2021 # # Accessible filesystems, by reference, are m 阅读全文
posted @ 2021-03-05 17:56 s。 阅读(1756) 评论(0) 推荐(0) 编辑
摘要: 1、Cron 时间表语法 # ┌───────────── 分钟 (0 - 59) # │ ┌───────────── 小时 (0 - 23) # │ │ ┌───────────── 月的某天 (1 - 31) # │ │ │ ┌───────────── 月份 (1 - 12) # │ │ │ 阅读全文
posted @ 2021-03-05 14:54 s。 阅读(80) 评论(0) 推荐(0) 编辑