A LEMP software stack is a gathering of open source programming that is ordinarily installed together to enable a server to have dynamic sites and web applications. This term is really an acronym which speaks to the Linux working framework, with the ENginx web server (which replaces the Apache part of a LAMP stack).
First, update the system.
sudo apt-get update Then Install Nginx in your system.
sudo apt-get install nginx We can make autostart nginx in nginx by