![]() #tar -xvzf nginx-1.6.2.tar.gzįirst change to directory extracted out from nginx tar ball. User tar command to extract the downloaded nginx source code. Installing all the dependency packages and NGINX modules.Īpt-get install build-essential libc6 libpcre3 libpcre3-dev libpcrecpp0 libssl0.9.8 libssl-dev zlib1g zlib1g-dev lsb-base openssl libssl-dev libgeoip1 libgeoip-dev google-perftools libgoogle-perftools-dev libperl-dev libgd2-xpm-dev libatomic-ops-dev libxml2-dev libxslt1-dev python-dev Here we are using curl command to download the current available latest package.Īdd nginx user to run NGINX demon in server.Ĭommand to add nginx user with nologin shell. You can download the nginx source code from download page. Please remember if we go this route of installing from source, going forward you need to do compile only if you need to add one more package or upgrade nginx.įollow the given below steps to install Nginx from source code on Ubuntu 14.04 LTS server.ĭownload the Nginx source code from NGINX official site.Īlways use latest available stable version. In this article we are going to delve into it. ![]() ![]() The reason could be we want to either install nginx with new custom nginx module which is not there in base nginx version or we don't want to use all the modules available by default in nginx. ![]() ![]() Normally you will install Nginx using apt-get install nginx, but in some scenarios we may need to install Nginx from source on Ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |