Wednesday 1 August 2018

Starting off with NGINX-UNIT

I am intending to write down some of the things I encountered as I set myself into running an app in NGINX-unit. 

Selling Points/USP

  1. Ease of installation
  2. Performance
  3. Changing the applications without needing to bringing down the server and server taking care of the connections while this process happens
  4. Ease of doing configurations -> via json using http calls 

Problem with Prefix. ( comes across as make install error)



root@netarch-ci-webserver:/home/ubuntu/unit-1.3# make install

error: to make install you need either
    to configure --prefix option
    or to set DESTDIR environment variable.

build/Makefile:1414: recipe for target 'install-check' failed
make: *** [install-check] Error 1


Solution:

Set the prefix to whatever you wish to while running 'configure' using the --prefix PATH.  I set it as '/' . , so the unitd goes and resides in /sbin on 'make install