当前位置:   article > 正文

【物联网】ARM平台运行mosquitto Error Invalid user ‘mosquitto‘_error: invalid user 'mosquitto'.

error: invalid user 'mosquitto'.

00. 目录

在这里插入图片描述

01. 问题描述

运行mosquitto的时候,出现Invalid user 'mosquitto’错误。

[root@qfedu mqtt_arm]#./sbin/mosquitto -c etc/mosquitto/mosquitto.con
1420083785: mosquitto version 1.5.4 starting
1420083785: Config loaded from etc/mosquitto/mosquitto.conf.
1420083785: Opening ipv6 listen socket on port 1883.
1420083785: Opening ipv4 listen socket on port 1883.
1420083785: Error: Invalid user 'mosquitto'.
[root@qfedu mqtt_arm]#

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

02. 问题分析

Invalid user ‘mosquitto’

03. 问题解决

添加用户mosquitto

[root@qfedu mqtt_arm]#adduser mosquitto
Changing password for mosquitto
New password: 
Bad password: too weak
Retype password: 
Password for mosquitto changed by root

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

04. 问题验证

[root@qfedu mqtt_arm]#./sbin/mosquitto -c etc/mosquitto/mosquitto.con
1420083972: mosquitto version 1.5.4 starting
1420083972: Config loaded from etc/mosquitto/mosquitto.conf.
1420083972: Opening ipv6 listen socket on port 1883.
1420083972: Opening ipv4 listen socket on port 1883.
1420083973: New connection from 10.36.100.74 on port 1883.
1420083973: New client connected from 10.36.100.74 as c16e4062-3c7b-48a7-a2eb-bd28b1fcf7b4 (c1, k60).

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

05. 附录

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/673913
推荐阅读
相关标签
  

闽ICP备14008679号