0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EMQX の使い方

Last updated at Posted at 2025-03-05

emqx は、MQTT のブローカーソフトです。

パッケージのダウンロード

wget https://www.emqx.com/en/downloads/broker/5.8.5/emqx-5.8.5-ubuntu24.04-amd64.deb

インストール

sudo dpkg -i emqx-5.8.5-ubuntu24.04-amd64.deb

起動

sudo systemctl start emqx

起動していることを確認

sudo systemctl status emqx

テスト

サブスクライブ

mosquitto_sub -d -t topic_aa

パブリッシュ

mosquitto_pub -d -t topic_aa -m "こんにちは Mar/05/2022"

リモートからのテスト

example.com に EMQX ブローカーが立っているとします。

サブスクライブ

mosquitto_sub -d -h example.com -t topic_aa

パブリッシュ

mosquitto_pub -d -h example.com -t topic_aa -m "こんにちは Mar/05/2022"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?