Skip to content

Setup Ubuntu CMSD Implementation

karmatothex edited this page Jun 2, 2022 · 4 revisions

setup temporary nginx and additional nginx module

  • 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
    • 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

Clone this wiki locally