-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Ubuntu CMSD Implementation
karmatothex edited this page Jun 2, 2022
·
4 revisions
git clone https://github.com/NUStreaming/CMSD-DASH.git
- before you proceed make sure you installed the requirements from https://github.com/karmatothex/awt-pj-ss22-streaming-analytics-using-cmcd-and-cmsd-1/wiki/Setup-Requirements-for-Ubuntu-CMCD-CMSD-Implementation
- info about
ngx_http_echo_module
: https://github.com/openresty/echo-nginx-module#installation - create dir for tmp nginx installation:
-
mkdir tmp
+cd tmp
+mkdir nginx
+cd nginx
-
-
pwd
-> /home/max/Documents/AWT/tmp/nginx -> copy path for later cd ~/Downloads
- download nginx module:
wget 'https://github.com/openresty/echo-nginx-module/archive/refs/tags/v0.62.tar.gz'
tar xf v0.62.tar.gz
cd echo-nginx-module-0.62/
-
pwd
-> /home/max/Downloads/echo-nginx-module-0.62 -> copy path for later ->cd ..
- download file for temporary nginx installation -> same version as current global nginx installation❗ (
nginx -v
):wget 'http://nginx.org/download/nginx-1.22.0.tar.gz'
tar xf nginx-1.22.0.tar.gz
cd nginx-1.22.0/
- install nginx with downloaded module into temporary folder
-
./configure --with-compat --prefix=/home/max/Documents/AWT/tmp/nginx --add-dynamic-module=/home/max/Downloads/echo-nginx-module-0.62
- possible PCRE library error ->
sudo apt install libpcre3 libpcre3-dev
, then run./configure
command again - possible zlib error ->
sudo apt install zlib1g-dev
andsudo apt install zlib1g
, then run./configure
command again
- possible PCRE library error ->
make -j2
make install
-
- copy the module from temporary installation into global nginx installation:
sudo cp /home/max/Documents/AWT/tmp/nginx/modules/ngx_http_echo_module.so /usr/lib/nginx/modules/
Now you are ready to follow the setup and testing steps at: https://github.com/NUStreaming/CMSD-DASH