IoT

※前提条件:本文基于 emqttd 2.2 创作

下载 [edit]

现在的emqttd已经变为收费软件了,2.2版本已经无法下载了

配置 [edit]

重启服务 [edit]

改了 etc 下的 emq.conf 需要重新启动一次服务

下面命令无法重启服务时:

/sbin/emqttd restart

关闭emqtt服务

/sbin/emqttd stop

然后下面的命令查看emqtt的守护进程

ps -aux | grep emq
root      71296  0.0  0.0  11624   340 ?        S    Jun03   0:06 /root/emqtt/emqttd-centos7-v2.2.0/emqttd/erts-8.3/bin/epmd -daemon
root      76234  0.0  0.0 112712   984 pts/1    S+   14:40   0:00 grep --color=auto emq

用kill 命令结束这个守护进程

kill <进程id>

然后再启动 emqtt服务

/sbin/emqttd start

用户设置 [edit]

启用 emq_auth_username 插件:

/sbin/emqttd_ctl plugins load emq_auth_username

在下面的文件中,配置默认用户,密码使用明文的

/etc/plugins/emq_auth_username.conf 

参考网址

http://runxinzhi.com/lexiaofei-p-8397888.html

コメント:



(画像の文字列を入力して下さい)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS