官网
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
安装
-
- 安装最新版
$ sudo yum install emqx
Install a specific version of EMQ X
- 安装最新版
- 查询活跃的版
[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
修改为中文

测试连接

控制台查看
