简体   繁体   English

蚊子错误

[英]Mosquitto Error

I am using Mosquitto for my project. 我正在为项目使用Mosquitto。 I have installed mosquitto-1.4.8-install-win32.exe and also place the three binary in folder 1. pthreadVC2.dll 2. libeay32.dll 3. ssleay32.dll 我已经安装了mosquitto-1.4.8-install-win32.exe,还将这三个二进制文件放在文件夹1中。pthreadVC2.dll 2. libeay32.dll 3. ssleay32.dll

And reinstalled the mosquitto after that Started the services for mosquitto broker I entered following commands in cmd 并重新安装了mosquitto之后,启动了mosquitto代理服务,我在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*

It doesn't show that "Opening ipv4 listen socket on port 1883." 它没有显示“在端口1883上打开ipv4侦听套接字”。 and shows error now. 并显示错误。 Previously my system does not show this error. 以前,我的系统不显示此错误。 but Now it is showing and my application is not running properly. 但是现在显示出来了,我的应用程序无法正常运行。

Please tell me to resolve this issue. 请告诉我解决此问题。

Any Help appreciated . 任何帮助表示赞赏。

Thanks and Regards, Ravindra 谢谢,拉文德拉

Looks like you already have mosquitto broker running and it's failing to open the ports (beacause they are already open). 看起来您已经在运行mosquitto代理,并且无法打开端口(因为它们已经打开)。

Those lines shows that the 1883 (mqtt port) is already open... 这些行表明1883(mqtt端口)已打开。

 TCP    0.0.0.0:1883           0.0.0.0:0              LISTENING
 TCP    [::]:1883              [::]:0                 LISTENING

It may be due to windows running services of mosquitto. 这可能是由于Windows运行了mosquitto服务所致。

First Stop mosquitto from windows services list Windows服务列表中的First Stop mosquitto

1.Press the Windows+R keys to open the Run dialog, type services.msc, press Enter 1.按Windows + R键打开``运行''对话框,键入services.msc,然后按Enter

2.Search for mosquitto broker service 2.搜索蚊子经纪人服务

3.Stop the service 3.停止服务

Now enter cmd as usual c:\\Program Files\\mosquitto>mosquitto -v This will Opening ipv6 listen socket on port 1883. 现在像往常一样输入cmd c:\\Program Files\\mosquitto>mosquitto -v这将打开端口1883上的ipv6监听套接字。

as below 如下

1455619440: Using default config.

1455619440: Opening ipv6 listen socket on port 1883.

1455619440: Opening ipv6 listen socket on port 1883.

Hope this will help you. 希望这会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM