Installing Building Mosquitto
Mosquitto can be installed via a package manager, i.e., brew
, apt
, apk
, dnf
, etc.
brew install mosquitto
sudo apt install mosquitto
sudo apk add mosquitto
sudo dnf install mosquitto
If you are unable to install Mosquitto using a package manager or the latest version you want to install is not available, then you can build it as described in this section.
✏️ The section also includes steps for building cJSON
and libwebsockets
, which may not be available for some Linux variants.
cd mosquitto-2.0.15
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
cmake install -DDOCUMENTATION=NO -DWITH_PLUGINS=NO -DWITH_WEBSOCKETS=YES .
make
sudo make install
If thecmake
command fails then install the command line tools and repeat.
xcode-select --install
cd mosquitto-2.0.15
sudo apt install -y g++ libc-ares-dev libssl-dev libcjson-dev libwebsockets-dev make
vi config.mk
# Enable websockets in config.mk:
WITH_WEBSOCKETS:=yes
make
sudo make install
cd mosquitto-2.0.15
sudo apk add g++ c-ares openssl-dev libwebsockets-dev
sudo apk add make cmake git
git clone https://github.com/DaveGamble/cJSON.git
cd cJSON
mkdir build
cd build
cmake ..
make
sudo make install
sudo vi /etc/ld.so.conf
# Add the following line in /etc/ld.so.conf:
/usr/local/lib64
cd ..
vi config.mk
# Enable websockets in config.mk:
WITH_WEBSOCKETS:=yes
make
sudo make install
cd mosquitto-2.0.15
sudo dnf install -y cmake gcc-c++ openssl-devel c-ares-devel
git clone https://github.com/DaveGamble/cJSON.git
cd cJSON
mkdir build
cd build
cmake ..
make
sudo make install
sudo vi /etc/ld.so.conf
# Add the following line in /etc/ld.so.conf:
/usr/local/lib64
sudo /sbin/ldconfig
cd ..
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
cmake .
make
sudo make install
cd ..
vi config.mk
# Enable websockets in config.mk:
WITH_WEBSOCKETS:=yes
make
sudo make install
Test:
mosquitto --version
If the above command displays the following error message:
mosquitto: error while loading shared libraries: libwebsockets.so.19: cannot open shared object file: No such file or directory
then set LD_LIBRARY_PATH
as follows. Note that your directory path maybe different the one shown below.
export LD_LIBRARY_PATH=/usr/local/lib
PadoGrid Manual
Overview
- Home
- PadoGrid in 5 Minutes
- Quick Start
- Introduction
- Bundle Catalogs
- Building PadoGrid
- Supported Data Grid Products and Downloads
- PadoGrid Components
- Installing PadoGrid
- Root Workspaces Environments (RWEs)
- Initializing PadoGrid
- Bash Auto-Completion
- Viewing PadoGrid Summaries
- Updating Products
- Upgrading PadoGrid
- Migrating Workspaces
- PadoGrid Pods
- Kubernetes
- Docker
- Apps
- Software List
Operations
- Workspace Lifecycle Management
- Creating RWE
- Creating Workspace and Starting Cluster
- Managing Workspaces
- Understanding Workspaces
- Understanding Clusters
- Running Clusters
- Default Port Numbers
- Running Clusters Independent of PadoGrid
- Running Apps
- Understanding Groups
- Running Groups
- Understanding Bundles
- User Bundle Repos
- Using Bundle Templates
- Bundle Repo Guidelines
- User Bundle Catalogs
- Private Bundle Repos
- Gitea Repos
- Running Bundles in Container
- PadoGrid Addon Jars
- Understanding PadoGrid Pods
- Tested Vagrant Boxes
- VM-Enabled Pods
- Multitenancy
- Multitenancy Best Practices
- PadoGrid Configuration Files
Tools
Platforms
Clouds
Pado
Geode/GemFire
- Geode CLASSPATH
- Geode Kubernetes
- Geode Minikube
- Geode Minikube on WSL
- Geode Docker Compose
- Geode Grafana App
- Geode
perf_test
App - Geode WAN Example
- Geode Workspaces on VMs
- Geode on AWS EC2
- Reactivating Geode Workspaces on AWS EC2
Hazelcast/Jet
- Hazelcast CLASSPATH
- Creating Jet Workspace
- Configuring Hazelcast Addon
- HQL Query
- Hazelcast Kubernetes
- Hazelcast GKE
- Hazelcast Minikube
- Hazelcast Minikube on WSL
- Hazelcast Minishift/CDK
- Hazelcast OpenShift
- Hazelcast Docker Compose
- Hazelcast Desktop App
- Hazelcast Grafana App
- Hazelcast
jet_demo
App - Hazelcast
perf_test
App - Hazelcast WAN Example
- Hazelcast Workspaces on VMs
- Hazelcast on AWS EC2
- Reactivating Hazelcast Workspaces on AWS EC2
ComputeDB/SnappyData
Coherence
Hadoop
Kafka/Confluent
Mosquitto
- Mosquitto CLASSPATH
- Mosquitto Overview
- Installing/Building Mosquitto
- Clustering MQTT
- Cluster Archetypes
- Enabling Mosquitto SSL/TLS
- Mosquitto Docker Compose
- MQTT perf_test App
Redis
Spark