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 build a mqtt server in java

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

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

Install the Emqx server

Install the necessary dependencies: $sudo yum install-y yum-utils device-mapper-persistent-data lvm2 sets up a stable repository For example, in the case of CentOs7: $sudo yum-config-manager-- add-repo https://repos.emqx.io/emqx-ce/redhat/centos/7/emqx-ce.repo installs the latest version of EMQ X$ sudo yum install emqx. You can also install a specified version to query the software version list first $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 choose one of the versions to install $sudo yum install emqx-4.2.4 launch Emqx directly launch $emqx start emqx 3.1.0 is started fully loaded $emqx_ Ctl status Node 'emqx@127.0.0.1' is started emqx v3.1.0 is running system starts the $sudo systemctl start emqx service starts the $sudo service emqx start``` open port

Ali Cloud instance security group and firewall open ports

The protocol corresponding to the port may function as 1883 MQTT protocol port8883 MQTT/SSL port8083 MQTT/WebSocket port8080 HTTP API port18083 Dashboard Management Console Port to access the Emqx service backend

Access the backend address: http://localhost:18083, where localhost can be replaced with your CVM public network IP or virtual machine IP. Login account: admin, password: public. Enter the Web Management console. As shown in the following figure

After reading the above, do you have any further understanding of how to build a mqtt server in java? 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: 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

Servers

Wechat

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

12
Report