当前位置: 代码迷 >> 综合 >> centos-emqx安装
  详细解决方案

centos-emqx安装

热度:101   发布时间:2023-09-07 06:03:10.0

官网

https://docs.emqx.io/broker/v3/en/install.html#centos

安装依赖
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Set up a stable repository, taking the CentOS7 as an example.$ sudo yum-config-manager --add-repo https://repos.emqx.io/emqx-ce/redhat/centos/7/emqx-ce.repo
Install the latest version of EMQ X
安装
    1. 安装最新版
      $ sudo yum install emqx
      Install a specific version of EMQ X
  1. 查询活跃的版
[root@localhost emqx]# yum list emqx --showduplicates | sort -r
已加载插件:fastestmirror
已安装的软件包
可安装的软件包* updates: mirrors.aliyun.com
Loading mirror speeds from cached hostfile* extras: mirror.bit.edu.cn* epel: hkg.mirror.rackspace.com
emqx.x86_64                     3.2.7-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.7-1.el7                      @emqx-ce-stable
emqx.x86_64                     3.2.6-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.5-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.4-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.3-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.2-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.1-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.2.0-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.1.2-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.1.1-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.1.0-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.0.1-1.el7                      emqx-ce-stable 
emqx.x86_64                     3.0.0-1.el7                      emqx-ce-stable * base: mirrors.aliyun.com
[root@localhost emqx]# 
  • 安装3.2.7
$ sudo yum install emqx-3.2.7
  • 启动
    Start EMQ X
systemctl start$ sudo systemctl start emqx
service start
``
> 一些配置路径
Configuration file path: /etc/emqx
Log file path: /var/log/emqx
Data file path: ``/var/lib/emqx`访问页面用户名/密码 admin/public
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102034423.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102100169.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)修改为中文
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102121512.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102129463.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)测试连接
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102203367.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)
控制台查看
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217102229404.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2tvMDQ5MQ==,size_16,color_FFFFFF,t_70)
  相关解决方案