Mosquitto在redhat中的安装

环境:redhat 6

安装方法,详情见eclipse官网  :https://mosquitto.org/download/

在root前提下,在/etc/yum.repos.d/下新建mosquitto.repo文件

gedit /etc/yum.repos.d/mosquitto.repo


然后,从官网上找到RHEL6的文件内容:

[home_oojah_mqtt]
name=mqtt (RedHat_RHEL-6)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/repodata/repomd.xml.key
enabled=1

写入mosquitto.repo中。

之后就可以yum了,

yum search all mosquitto    //可以看到支持的安装包,这里只需安装mosquitto和mosquitto-clients

yum install mosquitto mosquitto-clients

接着一路选y。

安装完毕。


你可能感兴趣的:(Mosquitto在redhat中的安装)