Last active
August 14, 2019 12:08
-
-
Save JohnKim/7993c718d27d85a23dee to your computer and use it in GitHub Desktop.
install mosquitto & auth-plugin
This file contains 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 | |
thanks for your helpful gist , update links with lastest versions :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
~ 업데이트
$ yum remove matahari*
$ yum update
~ 서버 종류 확인하기.
$ lsb_release -a
~ 컴파일하기 위한 툴킷 설치
$ yum -y groupinstall "Development Tools"