摘要: 使用nginx服务器如果遇到timeou情况时可以如下设置参数,使用fastcgi: fastcgi_connect_timeout 75; 链接 fastcgi_read_timeout 600; 读取 fastcgi_send_timeout 600; 发请求 这两个选项.fastcgi_rea 阅读全文
posted @ 2022-08-04 17:45 风儿飘 阅读(10360) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/bashops_counts=`/usr/local/bin/redis-cli info|grep instantaneous_ops_per_sec |awk -F: '{print $2}'`ops_count=`echo $ops_counts |awk '{print 阅读全文
posted @ 2022-04-28 11:08 风儿飘 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 单个删除 #!/bin/bash > /home/xx/es_index_delete_list curl -s --user elastic:passwd -XGET 'http://xxx:9200/_cat/indices/?v'|awk '{print $3}' > /home/xx/es_ 阅读全文
posted @ 2022-04-22 10:54 风儿飘 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 我刚才提交了什么? 如果你用 git commit -a 提交了一次变化(changes),而你又不确定到底这次提交了哪些内容。你就可以用下面的命令显示当前HEAD上的最近一次的提交(commit): (main)$ git show 或者 $ git log -n1 -p 我的提交信息(commi 阅读全文
posted @ 2022-03-17 14:01 风儿飘 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1、首先需要了解哪些占位符分别代表什么这些是死知识,把常用的记住,不常用的直接查表就行了 golang 的fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf。 定义示例类型和变量type Human struct {Name string}var people = Human 阅读全文
posted @ 2022-01-05 09:55 风儿飘 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: 转载表明出处 断断续续费时两周。。。一步一个坑,修改下NFS_IP 直接apply -f 就可以了 补充下,经过多次修改测试 集群中内存模式的pod有BUG。改为内存模式后 貌似集群通讯配置也会放到内存中,stop_app && start_app后进程会退出, 导致pod一直重启,报错为找不到no 阅读全文
posted @ 2021-09-26 14:49 风儿飘 阅读(487) 评论(0) 推荐(0) 编辑
摘要: NodeAffinity 规则设置的注意事项如果同时定义了nodeSelector和nodeAffinity,那么必须另个条件都得到满足。pod才能最终运行在指定的node上如果nodeAffinity指定了多个nodeSelectorTerms,那么其中一个能匹配成功即可。如果在nodeSelec 阅读全文
posted @ 2021-09-01 15:49 风儿飘 阅读(157) 评论(0) 推荐(0) 编辑
摘要: pod亲和性、pod-flag.yaml 被 pod-affinity.yaml 依赖 pod-antiaffinity.yaml 反亲和性 pod-flag.yamlpof-flag.yamlapiVersion: v1kind: Podmetadata: name: pod-flag label 阅读全文
posted @ 2021-09-01 10:46 风儿飘 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 不能放到location外(全局),会造成重定向死循环 放到location内,因为是同一域名会造成部分uri一起重定向造成页面显示不正常。 加了访问绝对路径 / 同时判断user_agent 为手机 才重定向 第二个location 也是为了死循环 location / { set $a 1; s 阅读全文
posted @ 2021-08-31 18:07 风儿飘 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 用iptables防火墙iptables -F# 允许包从22端口进入iptables -A INPUT -p tcp --dport 22 -j ACCEPT# 允许从22端口进入的包返回iptables -A OUTPUT -p tcp --sport 22 -m state --state E 阅读全文
posted @ 2021-08-31 13:45 风儿飘 阅读(32) 评论(0) 推荐(0) 编辑