-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Ubuntu CMSD Implementation
karmatothex edited this page Jun 1, 2022
·
4 revisions
- nginx
.deb
file for ubuntu: https://ubuntu.pkgs.org/18.04/nginx-amd64/nginx-module-perl_1.16.0-1~bionic_amd64.deb.html wget 'https://nginx.org/packages/ubuntu/pool/nginx/n/nginx-module-perl/nginx-module-perl_1.16.0-1~bionic_amd64.deb'
sudo apt install ./nginx-module-njs_1.16.0.0.3.1-1~bionic_amd64.deb
-
ngx_http_js_module.so
- https://ubuntu.pkgs.org/18.04/nginx-amd64/nginx-module-njs_1.16.0.0.3.1-1~bionic_amd64.deb.html
wget 'https://nginx.org/packages/ubuntu/pool/nginx/n/nginx-module-njs/nginx-module-njs_1.16.0.0.3.1-1~bionic_amd64.deb'
sudo apt install ./nginx-module-njs_1.16.0.0.3.1-1~bionic_amd64.deb
-
ngx_http_echo_module
: https://github.com/openresty/echo-nginx-module#installation-
mkdir tmp
cd tmp
mkdir nginx
-
pwd
-> /home/max/Documents/tmp/nginx -> copy path for later cd ~/Downloads
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 ..
wget 'http://nginx.org/download/nginx-1.16.0.tar.gz'
tar xf nginx-1.16.0.tar.gz
cd nginx-1.16.0/
-
./configure --prefix=/home/max/Documents/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
,sudo apt install zlib1g
, then run./configure
command again
- possible PCRE library error ->
make -j2
make install
sudo cp /home/max/Documents/tmp/nginx/modules/ngx_http_echo_module.so /usr/lib/nginx/modules/
-