ChirpStack Application Server makes use of MQTT for publishing and receivng application payloads. Mosquitto is a popular open-source MQTT server, but any MQTT broker implementing MQTT 3.1.1 should work. In case you install Mosquitto, make sure you install a recent version.
In order to install Mosquitto, execute the following command:
sudo apt-get install mosquitto
Please refer to the Mosquitto download page for information about how to setup Mosquitto for your platform.
ChirpStack Application Server persists the gateway data into a PostgreSQL database. Note that PostgreSQL 9.5+ is required.
Start the PostgreSQL prompt as the
sudo -u postgres psql
Within the PostgreSQL prompt, enter the following queries:
-- change to the ChirpStack Application Server database \c chirpstack_as -- enable the extensions create extension pg_trgm; create extension hstore; -- exit the prompt \q
To install the latest PostgreSQL:
sudo apt-get install postgresql
Please refer to the PostgreSQL download page for information how to setup PostgreSQL on your platform.
ChirpStack Application Server stores all non-persistent data into a Redis datastore. Note that at least Redis 2.6.0 is required.
To Install Redis:
sudo apt-get install redis-server
Please refer to the Redis documentation for information about how to setup Redis for your platform.