Install EMQX Enterprise on CentOS/RHEL
This page guides you on installing and starting EMQX on CentOS/RHEL system.
Supported versions:
- Amazon Linux 2023
- Amazon Linux 2
- Rocky Linux 9 (RHEL 9)
- Rocky Linux 8 (RHEL 8)
- CentOS 7 (RHEL 7)
Install with rpm
- Go to EMQ Official Site.
- Select
5.4.1
for Version andCentOS
for OS, and click the Download button. - On the Downloads and Install page, select
rpm
as the Install Method and select the proper CPU Architecture that matches your system. Download and install the package according to the instructions.
Start EMQX
EMQX offers 3 different options to start EMQX:
To start EMQX directly, run:
bash$ emqx start EMQX 5.4.1 is started successfully! $ emqx ctl status Node 'emqx@127.0.0.1' 5.4.1 is started
To start EMQX with systemctl, run:
bashsudo systemctl start emqx
To start EMQX as a service, run:
bashsudo service emqx start
Uninstall EMQX
To uninstall EMQX, run:
sudo yum remove emqx
Install with tar.gz
- Go to EMQ Official Site.
- Select
5.4.1
for Version andCentOS
for OS, and click the Download button. - On the Downloads and Install page, select
tar.gz
as the Install Method and select the proper CPU Architecture that matches your system. Download and install the package according to the instruction.
Start EMQX
After the installation, run the command below to start EMQX.
bash
./emqx/bin/emqx start