installing mosquitto server and configuring
2013-04-13 16:36
274 查看
This tutorial explains basic steps of installing mosquitto server on openwrt platform. Mosquitto exists in openwrt barrier breaker repository but I decided to crosscompile it. At host computer in openwrt directory call :
This will install version that don’t support ssl layer because we don’t need it. We need server that is fast. Run make menuconfig and under Network select mosquitto nossl as M package.
Then copy mosquitto package to weio. Mosquitto don’t have any dependencies.
Now it’s time to install mosquitto
If you run mosquitto now it will break :
root@Weio:/tmp# mosquitto
The reason is simple, user is not configured. As user is root we have to declare root user un mosquitto configuration. So edit /etc/mosquitto/mosquitto.conf file and add at user section
If you want to run manually mosquitto (you can see what is happening with clients on the console) you have to do :
Parameter -c specify path to conf file. However if you want to run automaticaly on startup mosquitto server do following
Once system rebooted you can see mosquitto server running by :
uros-petrevski-2:bin uros$ ./scripts/feeds install mosquitto-nossl
This will install version that don’t support ssl layer because we don’t need it. We need server that is fast. Run make menuconfig and under Network select mosquitto nossl as M package.
uros-petrevski-2:bin uros$ make J=4
Then copy mosquitto package to weio. Mosquitto don’t have any dependencies.
uros-petrevski-2:packages uros$ scp /Volumes/openwrt/carambola/bin/ramips/packages/mosquitto-nossl_1.0.3-1_ramips.ipk root@weio.local:/tmp
Now it’s time to install mosquitto
root@Weio:/tmp# opkg install mosquitto-nossl_1.0.3-1_ramips.ipk -d root
If you run mosquitto now it will break :
root@Weio:/tmp# mosquitto
11145: Error: Invalid user 'mosquitto'.
The reason is simple, user is not configured. As user is root we have to declare root user un mosquitto configuration. So edit /etc/mosquitto/mosquitto.conf file and add at user section
user root
If you want to run manually mosquitto (you can see what is happening with clients on the console) you have to do :
root@Weio:/# mosquitto -c /etc/mosquitto/mosquitto.conf
Parameter -c specify path to conf file. However if you want to run automaticaly on startup mosquitto server do following
root@Weio:/# /etc/init.d/mosquitto enable
Once system rebooted you can see mosquitto server running by :
root@Weio:/# ps | grep mosquitto
2570 root 932 S /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
2574 root 1488 S grep mosquitto http://blog.csdn.net/qiaofeiw/article/details/8760340
相关文章推荐
- installing mosquitto server and configuring
- Installing and configuring workflow for SharePoint Server 2013
- [转]Installing, Configuring and Using Windows Server AppFabric and the "Velocity" Memory Cache in 10 minutes
- [转]Installing and Configuring target iSCSI server on Windows Server 2012
- Installing and Configuring the Apache HTTP Server Plug-In (在weblogic 9.x 10.x上配置apache http server 插件)
- Installing and Configuring Windows Server Backup for Hyper-V
- Building a WAMP Dev Environment [1/4] - Installing and Configuring Apache
- Installing and Configuring Workflow Manager 1.0
- Configuring and Installing a Xen Hardware Virtual Machine (HVM) domainU Guest
- Installing and Configuring a MySQL Database
- Installing and Configuring Fedora KVM Virtualization
- Compiling Xen-4.4 From Source And Installing It On Ubuntu Server (Amd-64)
- 《Monitoring with Ganglia》Chapter 2 Installing and Configuring Ganglia
- Configuring NAT traversal using Kamailio 3.1 and the Rtpproxy server
- Configuring JD Edwards Deployment Server and Development Client on Oracle VM VirtualBox
- Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Part 1 - Configuring Microsoft Dynamics AX – Application Integr
- Installing and Configuring GoldenGate Veridata Agent
- Installing/Configuring PuTTy and Xming
- Configuring JD Edwards Deployment Server and Development Client on Oracle VM VirtualBox
- Compiling and Installing the Apache Web Server