问题描述
我正在为项目使用Mosquitto.我已经安装了mosquitto-1.4.8-install-win32.exe,还将三个二进制文件放在文件夹中1. pthreadVC2.dll2. libeay32.dll3. ssleay32.dll
I am using Mosquitto for my project.I have installed mosquitto-1.4.8-install-win32.exe and also place the three binary in folder1. pthreadVC2.dll2. libeay32.dll3. ssleay32.dll
然后重新安装了mosquitto,然后启动了mosquitto代理服务,我在cmd中输入了以下命令
And reinstalled the mosquitto after that Started the services for mosquitto broker I entered following commands in cmd
*C:\Users\ravindra-s>netstat -an
Active Connections
Proto Local Address Foreign Address State
...
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1883 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2701 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING
...
TCP [::]:135 [::]:0 LISTENING
TCP [::]:445 [::]:0 LISTENING
TCP [::]:1883 [::]:0 LISTENING
TCP [::]:2701 [::]:0 LISTENING
...
C:\Users\ravindra-s>cd "c:\Program Files"
c:\Program Files>cd mosquitto
c:\Program Files\mosquitto>mosquitto -v
1455619440: mosquitto version 1.4.8 (build date 14/02/2016 15:33:31.09) starting
1455619440: Using default config.
1455619440: Opening ipv6 listen socket on port 1883.
1455619440: Error: Unknown error*
没有显示正在打开端口1883上的ipv4侦听套接字".并显示错误.以前,我的系统不显示此错误.但是现在显示出来了,我的应用程序无法正常运行.
It doesn't show that "Opening ipv4 listen socket on port 1883." and shows error now.Previously my system does not show this error. but Now it is showing and my application is not running properly.
请告诉我解决此问题.
任何帮助表示赞赏.
感谢和问候,拉文德拉
Thanks and Regards,Ravindra
推荐答案
看起来您已经在运行mosquitto代理,并且无法打开端口(因为它们已经打开).
Looks like you already have mosquitto broker running and it's failing to open the ports (beacause they are already open).
这些行表明1883(mqtt端口)已经打开...
Those lines shows that the 1883 (mqtt port) is already open...
TCP 0.0.0.0:1883 0.0.0.0:0 LISTENING
TCP [::]:1883 [::]:0 LISTENING
这篇关于蚊子错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!