您当前的位置: 首页 >  ubuntu

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

UBUNTU安装EMQ

柳鲲鹏 发布时间:2018-10-08 10:25:14 ,浏览量:0

柳鲲鹏

官方参考:http://emqtt.com/docs/v2/install.html

  • 下载

https://www.emqx.io/downloads/broker

如果是学习,用最新的。如果是公司正式项目,最重要的是稳定,建议选择不带beta的,比如2.3.9。

  • 安装依赖库
sudo apt-get install lksctp-tools
  • 安装emq
sudo dpkg -i emqttd-ubuntu16.04-v2.3.9_amd64.deb

提示:ureadahead will be reprofiled on next reboot

要求重启,那就重启。

  • 启动或停止服务
sudo systemctl start|stop|restart emqttd.service
或者
emqttd stop|start
  • 检查运行状态
emqttd_ctl status

netstat -anp | grep 1883

或者使用自带的:

http://localhost:8080/status
  • 修改配置文件

/etc/emqttd/emq.conf

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0606s