• Ashish Jha's Official Blog
  • ask[@]ashishjha.com

ashish-jha

  • Home
  • Advertise
  • Blog
    • Technology
      • Cloud
      • Devops
      • Hacking
      • Security
      • WordPress
    • Software Development
      • PHP
    • Make Money
      • Blogging
      • Business
      • Domaining
    • Mindset
      • Spiritual
      • Motivation
      • India
    • General
      • Finance
      • Education
      • Health
  • Contact Us
  • Site Map
✕

Installation Of Nginx on Ubuntu 20

  • Home
  • Blog
  • Technology Devops
  • Installation Of Nginx on Ubuntu 20
January 11, 2021
Categories
  • Devops
Tags

This is evident from the post that Nginx is one of the most popular and growing web servers across the globe. Its faster than apache.

Let us see how we can install Nginx on Ubuntu, Centos and other platforms.

Installation Using Package Manager

mkdir nginx
cd nginx
wget http://nginx.org/download/nginx-1.19.5.tar.gz
tar -zxvf nginx-1.19.5.tar.gz
cd nginx-1.19.5
./configure
sudo apt-get install build-essential
sudo apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev

 

 

nginx path prefix: “/usr/local/nginx”
nginx binary file: “/usr/local/nginx/sbin/nginx”
nginx modules path: “/usr/local/nginx/modules”
nginx configuration prefix: “/usr/local/nginx/conf”
nginx configuration file: “/usr/local/nginx/conf/nginx.conf”
nginx pid file: “/usr/local/nginx/logs/nginx.pid”
nginx error log file: “/usr/local/nginx/logs/error.log”
nginx http access log file: “/usr/local/nginx/logs/access.log”
nginx http client request body temporary files: “client_body_temp”
nginx http proxy temporary files: “proxy_temp”
nginx http fastcgi temporary files: “fastcgi_temp”
nginx http uwsgi temporary files: “uwsgi_temp”
nginx http scgi temporary files: “scgi_temp”


./configure –modules-path=/etc/nginx/modules –sbin-path=/usr/bin/nginx –conf-path=/etc/nginx/nginx.conf –pid-path=/var/run/nginx.pid –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –with-http_ssl_module –with-pcre –with-zlib –with-pcre –with-http_v2_module


nginx path prefix: “/usr/local/nginx”
nginx binary file: “/usr/bin/nginx”
nginx modules path: “/etc/nginx/modules”
nginx configuration prefix: “/etc/nginx”
nginx configuration file: “/etc/nginx/nginx.conf”
nginx pid file: “/var/run/nginx.pid”
nginx error log file: “/var/log/nginx/error.log”
nginx http access log file: “/var/log/nginx/access.log”
nginx http client request body temporary files: “client_body_temp”
nginx http proxy temporary files: “proxy_temp”
nginx http fastcgi temporary files: “fastcgi_temp”
nginx http uwsgi temporary files: “uwsgi_temp”
nginx http scgi temporary files: “scgi_temp”


make

make install

nginx

Ashish Jha
Ashish Jha
I am Ashish Jha, Blogger at ashishjha.com blog. I use this blog to write about the things i like and explore. I share my everyday learning experiences with my readers through this blog. I love to answers concerns of my users and readers which you can ask through contact us form located at contact us page of the blog.

Related posts

January 6, 2021

Why Nginx is better than Apache?


Read more
git cheatsheet
October 6, 2020

How to use GIT to increase productivity


Read more

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

✕

Categories

  • Basics
  • Blogging
  • Business
  • Databases
  • Devops
  • Domaining
  • Education
  • General
  • Hacking
  • Motivation
  • PHP
  • Sales
  • Security
  • SEO
  • Software Development
  • Technology
  • Wordpress

Recent Posts

  • 0
    An Introduction to Databases
    January 12, 2021
  • 0
    Single Sign On
    January 12, 2021
  • 0
    Installation Of Nginx on Ubuntu 20
    January 11, 2021
  • 0
    JSON
    January 10, 2021
  • 0
    How to Use Sessions Correctly for Persistent Login?
    January 9, 2021

Recent Comments

  • May 23, 2018

    Ashish Jha commented on Should I Call Or Email?

  • May 23, 2018

    Ashish Jha commented on Importance of Education



Recently Added

  • 0
    An Introduction to Databases
    January 12, 2021
  • 0
    Single Sign On
    January 12, 2021
  • 0
    Installation Of Nginx on Ubuntu 20
    January 11, 2021

Worth A Visit

  • Home
  • Advertise
  • Blog
  • Contact Us
  • Site Map

More

  • Who Am I?
  • Community Services
  • Contact Us
  • Business
  • Motivation

Ashish Jha

This is my personal blog where i share my personal views about life and tech explorations.  I always work hard to bring the best & truthful facts through this blog. But, again i disclaim being an authority on any subject. I love learning new things and sharing them with my readers.

Note: Whatever i write on this blog are totally my experiences. If you don’t agree, Simply ignore them and move ahead in life. 

© 2007 - 2022. Ashishjha.com


    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.