EMQX 压力测试踩得坑供大家参考
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
目录
4、一些奇奇怪怪的报错 ---列表不要依赖我的内容请大家遇到报错再来查询
【点个赞吧】
❤❤❤进行压力测试花了4天时间没想到会才这么多问题有些问题浅挖是挖不到的将资料整理了一下希望可以帮助到大家承诺以下方法都是本人亲自操作过的亲测有效❤❤❤
部署流程
1、压力测试——EMQX部署
EMQX 的部署在另一篇文章 http://t.csdn.cn/mz7Z6
2、压力测试——Erlang环境安装
注我曾经尝试安装不下五次试过很多办法压缩包解压git clone 每次下载这个压缩包都需要2小时左右不知道你们是不是也是这样所以请在网络稳定地方安装
不要安装系统命令直接获取的版本是22的进行压力测试需要23.2以上以下链接有很多版本自行选择--->erlang下载路径Index of /download/ (erlang.org)
3、压力测试——Emqtt-beach工具安装
Emqtt-beach下载路径 git clone https://github.com/emqx/emqtt-bench.git
安装成功后可以根据下面一些参数进行测试啦
4、一些奇奇怪怪的报错 ---列表不要依赖我的内容请大家遇到报错再来查询
【问题1】
始终安装不上make后显示缺少otp.mk或者otp_ded.mk或者出现其他问题不妨试一下安装 ncurses-devel
【解决1】
apt-get install libncurses5-dev
在Linux上安装ErLang环境时如果编译一些比较老的程序就会出现 configure: error: No curses library functions found 提示 需要首先安装 ncurses-develncurses是字符终端下屏幕控制的基本库。可能很多新开发的程序已经不再使用。但是编译一些比较老的程序还是会经常碰到。
【问题2】
安装 ncurses-devel 后还是会出错
【解决2】
【问题3】
命令
make
提示fatal: unable to connect to github.com:
【解决3】
需要用https才能读到数据输入命令 git config --global url."https://".insteadOf git://
【问题4】
命令
make
提示'get-deps' failed while processing /home/ubuntu/mosquitto/emqtt-bench-benchmark: rebar_abort
【解决4】
下载rebar3
【问题5】
命令
git clone https://github.com/erlang/rebar3.git
提示提示fatal: unable to access 'GitHub - erlang/rebar3: Erlang build tool that makes it easy to compile and test Erlang applications and releases.': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
【解决5】
翻墙重新git clone --> cd rebar3 --> ./bootstrap --> ./rebar3 local install
【问题6】
命令
./bootstrap
提示Error: Unable to fetch package providers 1.9.0: failed connect
【解决6】
解决需要执行以下更新sudo apt-get update
【问题7】
wget https://s3.amazonaws.com/rebar3/rebar3
提示To connect to s3.amazonaws.com insecurely, use `--no-check-certificate'.
【解决7】
wget --no-check-certificate https://s3.amazonaws.com/rebar3/rebar3
【问题8】
报错
===> Failed to update package getopt from repo hexpm
===> Package not found in any repo: getopt 1.0.1
【解决8】
原配置文件的 getopt 配置不合适导致找不到 getopt 1.0.1
解决修改remar.config配置文件
{deps, [ {getopt, {git, "https://github.com/jcomellas/getopt", {tag, "v1.0.1"}}}, {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "v1.0.0"}}}]}.
【问题9】
报错The CXX compiler identification is unknown
【解决9】
出现该错误的原因是因为cmake找不到C++的编译器比如找不到g++
解决更新软件源sudo apt-get update ---> 安装sudo apt insatllbuild-essential
因为gcc不包含g++。可单独安装g++: apt-get install g++