-
-
Save baomin/636d13c02138de20f8e7fb8642d015fa to your computer and use it in GitHub Desktop.
install mosquitto & auth-plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## upgrade openssl | |
wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz | |
tar -zxf openssl-1.0.1i.tar.gz | |
cd openssl-1.0.1i | |
./config --prefix=/usr --openssldir=/usr/local/openssl shared | |
make | |
make test | |
sudo make install | |
openssl version | |
## build and install mosquitto MQTT Broker | |
yum -y install uuid uuid-deve libuuid-devel | |
wget http://mosquitto.org/files/source/mosquitto-1.4.tar.gz | |
tar xvzf mosquitto-1.4.tar.gz | |
cd mosquitto-1.4 | |
make mosquitto | |
sudo make install | |
## | |
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.1.0/mongo-c-driver-1.1.0.tar.gz | |
tar xzf mongo-c-driver-1.1.0.tar.gz | |
cd mongo-c-driver-1.1.0 | |
./configure | |
make | |
sudo make install | |
wget http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz | |
tar zxf c-ares-1.10.0.tar.gz | |
cd c-ares-1.10.0 | |
./configure | |
make | |
sudo make install | |
## build mosquitto-auth-plugin | |
git clone https://github.com/jpmens/mosquitto-auth-plug.git | |
cd mosquitto-auth-plug | |
cp config.mk.in config.mk | |
vi config.mk | |
MOSQUITTO_SRC = /home/stalk/dev/mosquitto-1.4/src | |
OPENSSLDIR = /usr/local/openssl | |
make | |
mv auth-plug.so /etc/mosquitto/ | |
mv /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf | |
vi /etc/mosquitto/mosquitto.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment