会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
s。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年4月16日
go相关
摘要: 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。
阅读(48)
评论(0)
推荐(0)
2021年4月15日
mac下使用vscode技巧
摘要: 1、查找 command + F 2、查找并替换 选中要替换的文字 再 command + options + F 3、竖状区域部分替换 鼠标点中替换字段的开头或者结尾,按options + shift 上下拖动 并左右拖动 一键编辑替换 或者复制替换 4、字母大小写转换设置 https://www
阅读全文
posted @ 2021-04-15 10:23 s。
阅读(677)
评论(0)
推荐(0)
2021年4月7日
mac下secureCRT的使用技巧
摘要: 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。
阅读(700)
评论(0)
推荐(0)
2021年3月31日
注释swap分区
摘要: grep "#" fstab |grep "swap" >/dev/null || sed -i 's/^.*swap/#&/g' fstab
阅读全文
posted @ 2021-03-31 11:30 s。
阅读(201)
评论(0)
推荐(0)
2021年3月17日
k8s 部署elasticsearch报 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
摘要: 1、由于登不上云的节点 不采用修改节点配置的方式 修改部署的stateful 加上 initContainers 它和 containers 同一层级的 initContainers: - name: sysctl securityContext: privileged: true command:
阅读全文
posted @ 2021-03-17 18:20 s。
阅读(891)
评论(0)
推荐(0)
2021年3月12日
find用法 以及和exec xargs 的组合使用
摘要: 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。
阅读(159)
评论(0)
推荐(0)
一些实用的linux命令
摘要: 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。
阅读(97)
评论(0)
推荐(0)
2021年3月5日
sed 找出含有某个字符串的行 注释掉
摘要: 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。
阅读(1859)
评论(0)
推荐(0)
crontab 语法和最快速的学习
摘要: 1、Cron 时间表语法 # ┌───────────── 分钟 (0 - 59) # │ ┌───────────── 小时 (0 - 23) # │ │ ┌───────────── 月的某天 (1 - 31) # │ │ │ ┌───────────── 月份 (1 - 12) # │ │ │
阅读全文
posted @ 2021-03-05 14:54 s。
阅读(90)
评论(0)
推荐(0)
修改statefulset 有些不允许直接修改
摘要: 1、比如修改一个storageClassName: hostpath 会报错 意思是除了 'replicas', 'template', 'updateStrategy' 其他部分都是不可以改的 怎么办? [root@master1 statefulset]# kubectl apply -f we
阅读全文
posted @ 2021-03-05 11:15 s。
阅读(4896)
评论(1)
推荐(0)
上一页
1
2
3
4
下一页
公告