蚊子中的地址已在使用错误 [英] address already in use error in mosquitto

查看:88
本文介绍了蚊子中的地址已在使用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 ubuntu 机器上安装了 mosquitto 服务器和客户端包.当我运行命令mosquitto"来运行 mosquitto 服务器时,我收到一个错误错误:地址已在使用中".为什么我收到这个错误?我该如何解决?

I have installed mosquitto server and client packages in my ubuntu machine. When I run command "mosquitto" to run the mosquitto server I am getting an error "Error:address already in use". Why am I getting this error? How can I resolve this?

推荐答案

我遇到了同样的问题,并通过终止运行 mosquitto 的进程解决了这个问题.首先,定位到mosquitto进程id:

I ran into the same problem, and resolved the situation by killing the process that was running mosquitto. First, locate the mosquitto process id:

ps -ef | grep mosquitto

这应该会向您揭示任何与蚊子相关的过程.例如,进程 ID 是 12345,然后你可以用这个来杀死它:

This should reveal to you any mosquitto related process. Say for example the process id was 12345, then you could kill it with this:

sudo kill 12345

之后,错误:地址已在使用消息消失了,mosquitto 能够再次正常运行.

After that the Error:address already in use message was gone and mosquitto was able to run properly again.

这篇关于蚊子中的地址已在使用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆