[英]Mosquitto installation in My Ubuntu 14.04
I want to install Mosquitto in My Ubuntu 14.04 LTS 我想在我的Ubuntu 14.04 LTS中安装Mosquitto
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto-clients
but I have an error testing the installation: 但是我在测试安装时出错:
devuser@localhost:~$ mosquitto_sub -t '$SYS/#' -v
Error: Connection refused
pinging the host from outside is fine: 从外部ping主机是可以的:
ping 199.162.221.117
PING 199.162.221.117 (199.162.221.117): 56 data bytes
64 bytes from 199.162.221.117: icmp_seq=0 ttl=55 time=102.234 ms
but not 但不是
ping 199.162.221.117:1883
ping: cannot resolve 199.162.221.117:1883: Unknown host
also 也
devuser@localhost:~$ sudo start mosquitto
[sudo] password for devuser:
start: Unknown job: mosquitto
also 也
devuser@localhost:~$ sudo /etc/init.d/mosquitto start
sudo: /etc/init.d/mosquitto: command not found
You have only installed the mosquitto command line clients (mosquitto_sub & mosquitto_pub) not the actual broker 您仅安装了mosquitto命令行客户端(mosquitto_sub和mosquitto_pub),而不是实际的代理
$ sudo apt-get install mosquitto
That should install the actual broker which you will then be able to start with the last command you listed 那应该安装实际的代理,然后您就可以从列出的最后一个命令开始
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.