weijiawei

Results 7 comments of weijiawei

1.我把注释删除了 2.吧pwd.conf也删除了 3.执行:touch pwd.conf 4.执行:./broke 运行出现下面提示: [2023-11-21 04:29:44,211][ INFO][ mqtt_broker.c:371 ] read config file tinymqtt.conf ok [2023-11-21 04:29:44,211][ERROR][ mqtt_config.c:102 ] fopen() error: file not exist: pwd.conf [2023-11-21 04:29:44,211][ERROR][ mqtt_broker.c:384 ]...

# server port port=1883 # location of the password file password_file=pwd.conf # if allow anonymous login, the broker won't check the username and password allow_anonymous=true # the maximum number of...

上面的被格式化了 port=1883 password_file=pwd.conf allow_anonymous=true inflight_window=1 io_threads=4

是的,我也觉得很奇怪,后面我换个虚拟机试下

我直接在ubuntu上创建pwd.conf文件就是可以正常运行 也就是通过ssh创建会传在问题

还是打印这个 [2023-11-21 05:47:28,807][ INFO][ mqtt_broker.c:371 ] read config file tinymqtt.conf ok [2023-11-21 05:47:28,808][ERROR][ mqtt_config.c:103 ] fopen() error: No such file or directory: pwd.conf [2023-11-21 05:47:28,808][ERROR][ mqtt_broker.c:384 ] read password file...

因该是通过ssh创建的tinymqtt.conf文件有问题, 读取出来的数据可能有什么编码之类的问题