跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

joker

174RSS订阅

joker 的帖子

kubernetes升级到1.14.2

变化不大,其中销毁状态pod继续显示的bug已修复: https://github.com/kube… 继续阅读 kubernetes升级到1.14.2

  • 发表于: 2019-05-21 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: Docker, I/O, kubelet, kubernetes
  • 发表评论: kubernetes升级到1.14.2

ModuleNotFoundError: No module named ‘MySQLdb’

MySQLdb只支持Python2不支持3,用PyMySQL代替: pip install PyMy… 继续阅读 ModuleNotFoundError: No module named ‘MySQLdb’

  • 发表于: 2019-05-21 2020-12-22
  • 作者: joker
  • 分类: 开发
  • 标签: https, pip, python
  • 发表评论: ModuleNotFoundError: No module named ‘MySQLdb’

shell获取字符串长度

echo ${#str} echo ${str} | awk ‘{print length($0)}… 继续阅读 shell获取字符串长度

  • 发表于: 2019-05-16 2021-05-19
  • 作者: joker
  • 分类: SRE
  • 标签: awk, bash, https, shell
  • 发表评论: shell获取字符串长度

elasticsearch 6下载地址

https://artifacts.elastic.co/downloads/elasticsear… 继续阅读 elasticsearch 6下载地址

  • 发表于: 2019-05-16 2021-04-02
  • 作者: joker
  • 分类: 资源
  • 标签: elasticsearch, https, Linux, tar, 资源
  • 发表评论: elasticsearch 6下载地址

docker info报错docker bridge-nf-call-iptables is disabled

vim /etc/sysctl.conf net.bridge.bridge-nf-call-ip6… 继续阅读 docker info报错docker bridge-nf-call-iptables is disabled

  • 发表于: 2019-05-15 2020-12-13
  • 作者: joker
  • 分类: SRE
  • 标签: bash, Docker, https, iptables, vim
  • 发表评论: docker info报错docker bridge-nf-call-iptables is disabled

wget镜像下载网站

wget -r -p -np -k http://test.com -r 表示递归下载,会下载所有的… 继续阅读 wget镜像下载网站

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: html, http, https, 网络
  • 发表评论: wget镜像下载网站

配置 nginx 发送 X-Frame-Options 响应头

把下面这行添加到 ‘http’, ‘server’ 或者 ‘location’ 的配置中: add_… 继续阅读 配置 nginx 发送 X-Frame-Options 响应头

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: http, https, nginx
  • 发表评论: 配置 nginx 发送 X-Frame-Options 响应头

nginx过滤请求中的关键词

#get请求 全局过滤 %0d%0a set $is_get 0; set $keywords_fo… 继续阅读 nginx过滤请求中的关键词

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx过滤请求中的关键词

nginx配置referers白名单

#referers白名单 valid_referers none blocked *.test.co… 继续阅读 nginx配置referers白名单

  • 发表于: 2019-05-14 2020-12-03
  • 作者: joker
  • 分类: SRE
  • 标签: https, nginx, post, s3
  • 发表评论: nginx配置referers白名单

修改nginx请求中传参名称

#把p改为mp4t if ($args ~ “(.+)&mp4t=([^&]+)&a… 继续阅读 修改nginx请求中传参名称

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: 修改nginx请求中传参名称

限制nginx请求方法method

#使用http动词篡改的认证旁路 入口nginx做限制 if ($request_method !~… 继续阅读 限制nginx请求方法method

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: http, https, nginx
  • 发表评论: 限制nginx请求方法method

nginx将cookie置空

#$cookie_WASPostParam参数置空 if($cookie_WASPostParam … 继续阅读 nginx将cookie置空

  • 发表于: 2019-05-14 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: cookie, https, nginx
  • 发表评论: nginx将cookie置空

iostat命令

[root@node01 ~]# iostat –help Usage: iostat [ opt… 继续阅读 iostat命令

  • 发表于: 2019-05-13 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: cpu, 工具
  • 发表评论: iostat命令

nc命令常用情景

用法: [root@node01 ~]# nc –help Ncat 7.50 ( https:/… 继续阅读 nc命令常用情景

  • 发表于: 2019-05-13 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: proxy, ssl, udp, 网络
  • 发表评论: nc命令常用情景

wondershaper限制网卡网速

主页:https://github.com/magnific0/wondershaper 安装: g… 继续阅读 wondershaper限制网卡网速

  • 发表于: 2019-05-13 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: https, 网络
  • 发表评论: wondershaper限制网卡网速

kubernetes-CronJob备份etcd

在kube-system创建pvc: apiVersion: v1 kind: Persistent… 继续阅读 kubernetes-CronJob备份etcd

  • 发表于: 2019-05-13 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: etcd, k8s, kubernetes
  • 发表评论: kubernetes-CronJob备份etcd

两个挖矿程序特征20190510

第一个 发现cpu高占用的进程,其二进制如下: [root@test1 ~]# md5sum /tm… 继续阅读 两个挖矿程序特征20190510

  • 发表于: 2019-05-13 2021-04-02
  • 作者: joker
  • 分类: SRE, 开发
  • 标签: bash, upd, 安全
  • 发表评论: 两个挖矿程序特征20190510

CURRENT_TIMESTAMP自动维护写入时间

设计表时时间字段用CURRENT_TIMESTAMP,在代码中无需再手动给参数赋值了。 CURREN… 继续阅读 CURRENT_TIMESTAMP自动维护写入时间

  • 发表于: 2019-05-10 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: https, MySQL
  • 发表评论: CURRENT_TIMESTAMP自动维护写入时间

ImportError: No module named pysqlite2

python3下:ImportError: No module named pysqlite2 先安… 继续阅读 ImportError: No module named pysqlite2

  • 发表于: 2019-05-10 2020-12-22
  • 作者: joker
  • 分类: SRE
  • 标签: https, python, SQLite, yum
  • 发表评论: ImportError: No module named pysqlite2

禁止su

(禁su) 1)usermod -G wheel ifly 2)vi /etc/pam.d/su 去… 继续阅读 禁止su

  • 发表于: 2019-05-09 2021-04-02
  • 作者: joker
  • 分类: SRE
  • 标签: https, Linux
  • 发表评论: 禁止su

分页

页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 … 页码: 9 下一页

搜索

搜索:

近期评论

  • test发表在《gin不转义html标签》
  • 路过发表在《msg=”getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService”》
  • 禁止chrome浏览器http自动转成https – SRE笔记发表在《nginx安全配置 XSS攻击 Header头设置》
  • springboot lifecycle timeout-per-shutdown-phase优雅退出 – SRE笔记发表在《terminationGracePeriodSeconds优雅终止pod时间》
  • kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 3-broker – SRE笔记发表在《kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 1-镜像》

标签

aws (15) azure (12) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (120) Grafana (13) hpc (15) http (299) ingress (14) java (75) jenkins (13) JVM (20) kubernetes (309) Linux (439) lotus (30) mongoDB (41) MySQL (184) nginx (112) Oracle (13) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) zookeeper (13) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2022年11月
  • 2022年10月
  • 2022年9月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年2月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年8月
  • 2018年7月
  • 2018年6月
  • 2018年5月
  • 2018年4月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年2月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2016年1月
  • 2015年12月
  • 2015年10月
  • 2015年9月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2015年4月
  • 2015年3月
  • 2015年2月
  • 2015年1月
  • 2014年12月
  • 2014年11月
  • 2014年10月
  • 2014年9月
  • 2014年8月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 2014年2月