Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install EMQ X server in CentOS7

2025-04-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about how to install EMQ X server in CentOS7. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

System requirements

CentOS 6.8

CentOS 7

Install EMQ X

You can install EMQ X in different ways as needed:

Set up and install the mirror library for EMQ X to facilitate installation and upgrade tasks.

Download the package manually and install it.

Install EMQ X using the Mirror Library

Before you install EMQ X for the first time on a new host, you need to set up the EMQ X Mirror Library. You can then install and update EMQ X from the Mirror Library.

Set up the mirror library

1. Install the required packages.

$sudo yum install-y yum-utils device-mapper-persistent-data lvm2

two。 Use the following command to set up a stable mirror library, taking centos7 as an example.

$sudo yum-config-manager-- add-repo https://repos.emqx.io/emqx-ce/redhat/centos/7/emqx-ce.repo installs EMQ X

1. Install the latest version of EMQ X, or go to the next step to install a specific version:

$sudo yum install emqx

If prompted to accept the GPG key, verify that the fingerprint matches the fc84 1ba6 3775 5ca8 487b 1e3c c0b4 0946 3e64 0d53, and if so, accept the fingerprint.

If multiple EMQ X mirror libraries are enabled, the highest possible version will always be installed if no version is specified in the yum install or yum update command, which may not be suitable for stability requirements.

two。 To install a specific version of EMQ X, you need to list the available versions, then select and install:

Query available version

$yum list emqx--showduplicates | sort-remqx.x86_64 3.1.0-1.el7 emqx-stableemqx.x86_64 3.0.1-1.el7 emqx-stableemqx.x86_64 3.0.0-1.el7 emqx-stable

The list returned depends on the enabled mirror library and is specific to the CentOS version (represented by the .el7 suffix in this example).

Install a specific version using the version string in the second column, such as 3.1.0

$sudo yum install emqx-3.1.0

3. Start EMQ X

$emqx startemqx 3.1 is started fully fulfilled $emqx_ctl statusNode 'emqx@127.0.0.1' is startedemqx v3.1.0 is running

4.EMQ X started successfully. Please refer to the official documentation on how to use it.

Install EMQ X using the package

If you cannot install EMQ X using EMQ X's mirror library, you can download a .rpm file or a .zip file and install it manually.

Install from a .rpm file

1. Go to http://emqx.io or https://github.com/emqx/emqx/releases, select the CentOS version, and then download the .rpm file for the version of EMQ X you want to install.

two。 Install EMQ X and change the path below to the path where you downloaded the EMQ X package.

$sudo rpm-ivh / path/to/emqx-centos7-v3.1.0.x86_64.rpm

3. Start EMQ X

$emqx startemqx 3.1 is started fully fulfilled $emqx_ctl statusNode 'emqx@127.0.0.1' is startedemqx v3.1.0 is running

4.EMQ X started successfully. Please refer to the official documentation on how to use it.

Install from a .zip file

1. Go to http://emqx.io or https://github.com/emqx/emqx/releases, select the CentOS version, and then download the .zip file for the version of EMQ X you want to install.

two。 Unzip the package and change the path below to the path where you downloaded the EMQ X package.

$unzip / path/to/emqx-centos7-v3.1.0.zip

3. Start EMQX

$cd emqx $. / bin/emqx start emqx 3.1 is started successfully! $. / bin/emqx_ctl status Node 'emqx@127.0.0.1' is started emqx v3.1.0 is running

The above is the editor for you to share how to install EMQ X server in CentOS7, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report