`

Installing Mosquitto Under CentOS【转】

阅读更多

 

    It was decided that CEIT was in need of a local MQTT server to avoid having to play in the mess that is IBM's realtime server. So I installed one on the same virtual machine that ejabberd was installed on. Here's how I did it:

What you'll need:

  • Port 1883 to be open to incoming MQTT messages

    Step 1: Add the CentOS mosquitto repository to YUM's list of repositories

 

1. $ cd /etc/yum/yum.repos.d
2. $ wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-5/home:oojah:mqtt.repo
3. $ sudo yum update

 

 

    Step 2: Install mosquitto

1. $ sudo yum install mosquitto

 

    Step 3: Run mosquitto

    As of writing, no init.d script exists for the CentOS distribution of mosquitto. However, it is a simple enough matter to set it running as a daemon, you'll just need to restart it yourself whenever your machine gets restarted.

1. $ sudo su
2. $ /usr/sbin/mosquitto -d -c /etc/mosquitto/mosquitto.conf > /var/log/mosquitto.log 2>&1

  

    Mosquitto should now be running! You can test it by pointing mosquitto_pub and _sub at it.

 

    Likely problems:

    There appear to be some issues with the mosquitto libraries in the repository, in that they don't work out of the box. I had better success compiling the libraries from source and installing them that way. The method for doing that is fairly similar to doing under OSX, so see my previous post on that subject.

 

参考文章:http://ceit.uq.edu.au/content/installing-mosquitto-under-centos

分享到:
评论

相关推荐

    CentOS 7 Server Deployment Cookbook

    Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems...

    CentOS5.3 操作系统应用打包

    cat install.log | grep Installing | sed 's/Installing//g' > /home/packages.list ``` #### 五、完整性检查与打包 1. **完整性检查**: - 完成所有文件和 RPM 包的复制后,需确保 `/home/OS/CentOS` 目录下的...

    Docker Linux Centos6.5离线安装

    1、已安装的linux (以centos7为例) 2、离线安装包: ①、docker-engine-1.7.1-1.el7.centos.x86_64.rpm(可从以下链接下载http://www.oschina.net/news/64267/docker-1-7-1-final,centos7对应下载链接: ...

    CentOS 6.4安装(超级详细图解教程)

    【CentOS 6.4安装(超级详细图解教程)】 CentOS,全称为Community ENTerprise Operating System,是一款基于Linux的开源操作系统,以其稳定性和安全性受到广大用户的喜爱,尤其在服务器领域应用广泛。本教程将针对...

    docker-engine-1.12.6-1.el7.centos.x86_64

    Installing : docker-engine-1.12.6-1.el7.centos.x86_64 8/8 Verifying : libsemanage-python-2.5-11.el7.x86_64 1/8 Verifying : setools-libs-3.3.8-2.el7.x86_64 2/8 Verifying : policycoreutils-python-...

    CentOS宝典.pdf

    Chapter 2: Installing CentOS. Chapter 3: Getting Started with the Desktop. Chapter 4: Using Linux Commands. Part II Using CentOS. Chapter 5: Accessing and Running Applications. Chapter 6: ...

    真机安装centos教程

    选择“Install CentOS”或“Try CentOS without installing”,如果你想要在不安装的情况下先体验系统。 五、语言和地区选择 在欢迎界面,选择合适的语言和地区,这将影响到系统的语言环境和键盘布局。 六、磁盘...

    centos下安装网页版ssh-GateOne

    你可以通过访问官网(https://pip.pypa.io/en/latest/installing/)来了解如何安装pip。 接下来,我们开始安装GateOne及其依赖项。首先,安装EPEL仓库,因为GateOne的一些依赖包可能不在默认的CentOS仓库中。你可以...

    Linux(centos7)安装Jenkins文档

    Linux(CentOS 7)安装 Jenkins 文档 Jenkins 是一个开源软件项目,是基于 Java 开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。下面是详细的安装和...

    Installing_cimco_license_server_key_file_CIMCO_

    CIMCO FOR INSTALLING FOR MASTERCAM

    OpenERP Installing Ubuntu9.04

    OpenERP Installing Ubuntu9.04

    Installing Configuring Alfresco ECM 3.1

    - **Installing the Alfresco Tomcat bundle on Linux**:对于 Linux 平台,同样提供了仅安装 Alfresco 和 Tomcat 的捆绑包的方法。 - **Installing Alfresco on Mac (full installation)**:Mac 用户的完整安装指南...

    Installing Activ Test on Your PC

    ### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...

    Exam Ref 70-410: Installing and Configuring Windows Server 2012 R2

    Installing and configuring servers Chapter 2. Configuring server roles and features Chapter 3. Configuring Hyper-V Chapter 4. Deploying and configuring core network services Chapter 5. Installing and...

    Installing And Configuring Windows Server 2012 Exam Ref 70-410

    根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...

    Installing and Configuring Windows Server 2012 R2

    根据给定的文件信息,我们可以提炼以下知识点: 1. **Windows Server 2012 R2安装与配置**: - MCSA(Microsoft Certified Solutions Associate)认证考试涉及到Windows Server 2012 R2的安装与配置,其中考试编号...

    01 02. Installing Unity3D

    Installing Unity很快就学到安装希望大家好好学习天天向上

Global site tag (gtag.js) - Google Analytics