In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "detailed steps of installing EMQ X under Debian". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the detailed steps of installing EMQ X under Debian".
System requirements
Stretch (Debian 9)
Jessie (Debian 8)
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 unstable mirror library, add the word unstable after the word stable in the following command.
Note: the following lsb_release-cs subcommand returns the name of the Debian distribution, such as helium. Sometimes, in a distribution like BunsenLabs Linux, you may need to change $(lsb_release-cs) to the parent Debian distribution. For example, if you are using BunsenLabs Linux Helium, you can use stretch. EMQ X does not provide any warranty for untested and unsupported Debian distributions.
$sudo add-apt-repository "deb [arch=amd64] https://repos.emqx.io/emqx-ce/deb/debian/ $(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 emqx emqx | 3.1.0 | https://repos.emqx.io/emqx-ce/deb/debian stretch/stable amd64 Packages emqx | 3.0.1 | https://repos.emqx.io/emqx-ce/deb/debian stretch/stable amd64 Packages emqx | 3.0.0 | https://repos.emqx.io/emqx-ce/deb/debian stretch/stable amd64 Packages
Use the version string in the second column to install a specific version, such as 3.1-rc.1
$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] (https://developer.emqx.io/docs/broker/v3/cn/getstarted.html)
Install EMQ X using the 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 Debian 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-debian9-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] (https://developer.emqx.io/docs/broker/v3/cn/getstarted.html)
Install from a .zip file
1. Go to emqx.io or github, select the Debian 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-debian9-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
4.EMQ X started successfully. Please refer to the official documentation on how to use it] (https://developer.emqx.io/docs/broker/v3/cn/getstarted.html)
Thank you for your reading, the above is the content of "detailed steps for installing EMQ X under Debian". After the study of this article, I believe you have a deeper understanding of the detailed steps of installing EMQ X under Debian, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.