摘要: 问题1:EnvironmentError: mysql_config not found 解决方法: yum -y install mysql-devel 问题2:fatal error: Python.h: No such file or directory 解决方法: yum -y instal 阅读全文
posted @ 2020-12-31 16:14 wangqingyong 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 一、环境准备 资源文件创建 ~~~ mkdir p /opt/tmp/wqy/test/aaa mkdir p /opt/tmp/wqy/test/bbb echo "aaa" /opt/tmp/wqy/test/aaa/index.html echo "bbb" /opt/tmp/wqy/test 阅读全文
posted @ 2019-09-29 17:01 wangqingyong 阅读(3709) 评论(0) 推荐(0) 编辑
摘要: 一、SSL/TLS握手流程 SSL/TLS握手流程图,摘自 "rfc5246" | Client | Server | | | | | 1 Client Hello | | | | 2 Server Hello3 certificate4 (server_key_exchange)5 (certif 阅读全文
posted @ 2019-07-16 17:28 wangqingyong 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 一、背景 在一次学习https原理的过程中,希望客户端指定特定的 来抓包分析SSL/TLS的握手过程,就想到了使用curl工具,而不是使用浏览器。 接下来使用 找到 选项,同时man文档中同时提到了需要到https://curl.haxx.se/docs/ssl ciphers.html这个地方去寻 阅读全文
posted @ 2019-07-11 18:20 wangqingyong 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 本文介绍的 是`prometheus kafka kafka 0.10.1.0` 及以上。 项目的github地址: 一、安装kafka_exporter 1、安装go ~~~ [root@localhost ~] go bash: go: command not found [root@local 阅读全文
posted @ 2019-06-24 18:50 wangqingyong 阅读(2369) 评论(0) 推荐(0) 编辑
摘要: Linux的/proc/sys/fs/file max决定了当前内核可以打开的最大的文件句柄数。 查看当前的值: 这个值在kernel的文档里是这样描述的: 意思是file max一般为内存大小(KB)的10%来计算,如果使用shell,可以这样计算: 一般我们不需要主动设置这个值,除非这个值确实较 阅读全文
posted @ 2019-06-24 18:35 wangqingyong 阅读(2808) 评论(0) 推荐(0) 编辑
摘要: 一、chroot方式 ~~~sh [root@localhost ~] chroot userspec "nginx:nginx" "/" sh c "whoami" nginx [root@localhost ~] chroot userspec "kibana:kibana" "/" sh c 阅读全文
posted @ 2019-06-24 18:06 wangqingyong 阅读(6064) 评论(0) 推荐(0) 编辑
摘要: [TOC] 由于标准的ab只支持对单个uri进行压测,不满足实际需要,故做以下修改,使ab支持multi url。 1、下载Apache httpd相关源码包以及针对ab工具的patch包 ~~~ wget https://mirrors.tuna.tsinghua.edu.cn/apache/ap 阅读全文
posted @ 2019-06-24 14:22 wangqingyong 阅读(762) 评论(54) 推荐(1) 编辑