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 Ubuntu

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

Share

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

Today, I will talk to you about how to install EMQ X server in Ubuntu. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.

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. Update the apt package index:

$sudo apt update

two。 Install the necessary software:

$sudo apt install-y apt-transport-https ca-certificates curl gnupg-agent software-properties-common

3. Add the official GPG key for EMQ X:

$curl-fsSL https://repos.emqx.io/gpg.pub | sudo apt-key add-

Authentication key

$sudo apt-key fingerprint 3E640D53pub rsa2048 2019-04-10 [SC] FC84 1BA6 3775 5CA8 487B 1E3C C0B4 0946 3E64 0D53uid [unknown] emqx team

4. Use the following command to set up the stable mirror library. To add the mirror library of unstable, add the word unstable after the word stable in the following command.

Note: the following lsb_release-cs subcommand returns the name of the Ubuntu distribution, such as xenial. Sometimes in a distribution like Linux Mint, you may need to change $(lsb_release-cs) to the parent Ubuntu distribution. For example, if you are using Linux Mint Tessa, you can use bionic. EMQ X does not provide any warranty for untested and unsupported Ubuntu distributions.

$sudo add-apt-repository "deb [arch=amd64] https://repos.emqx.io/emqx-ce/deb/ubuntu/ $(lsb_release-cs) stable" install EMQ X

1. Update the apt package index:

$sudo apt update

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

$sudo apt install emqx

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

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

Query available version

$sudo apt-cache madison emqxemqx | 3.1.0 | https://repos.emqx.io/emqx-ce/deb/ubuntu bionic/stable amd64 Packagesemqx | 3.0.1 | https://repos.emqx.io/emqx-ce/deb/ubuntu bionic/stable amd64 Packagesemqx | 3.0.0 | https://repos.emqx.io/emqx-ce/deb/ubuntu bionic/stable amd64 Packages

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

$sudo apt install emqx=3.1.0

4. Start EMQ X

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

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

Install EMQ X using the installation package

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

Install from a .deb file

1. Go to emqx.io or github, select the Ubuntu version, and then download the .deb 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 dpkg-I / path/to/emqx-ubuntu18.04-v3.1.0_amd64.deb

3. Start EMQ X

$emqx start emqx 3.1 is started successfully! $emqx_ctl status Node 'emqx@127.0.0.1' is started emqx 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 emqx.io or github, select the Ubuntu 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-ubuntu18.04-v3.1.0.zip

3. Start EMQ X

$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 after reading the above, do you have any further understanding of how to install EMQ X server in Ubuntu? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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: 248

*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