+4 votes
248 views
How to install and configure Nginx Debian 9 Linux

in Linux / Unix by (551k points)
reopened | 248 views

1 Answer

+5 votes
Best answer

1. System update and how to install Nginx

We currently have the possibility of installing in our Linux distributions a series of programs, applications and functionalities focused on improving the design and development of the system to maximize its potential and thus offer users greater services and options..

Nginx is positioned in this branch as one of these options when we refer to the whole topic of proxy servers. Today TechnoWikis will explain step by step how to install Nginx on Debian 9 .

Nginx
Nginx (x engine) is an HTTP and reverse proxy server, which can be implemented as a mail proxy server and a generic TCP / UDP proxy server.

When implementing a Nginx server we will be enjoying benefits such as, by categories:

Basic functions
  • Static and index or auto-indexed file server.
  • Reverse proxy acceleration with caching; load balancing and fault tolerance
  • Accelerated support with FastCGI, uwsgi, SCGI and memcached servers caching.
  • Modular architecture, where filters include gzipping, byte ranges, fragmented responses, XSLT, SSI and image transformation filter.
  • Support for SSL and TLS SIN
  • Support for HTTP / 2 with weighted priority and dependency based
  • Name-based and IP-based virtual servers
  • Support for Keep-alive and pipeline connections
  • Access to record formats, stored record writing, fast record rotation and Syslog logging
  • Redirection of error codes 3xx-5xx
  • You can change URI using regular expressions
  • Execute different functions depending on the client's address
  • Access control based on the client's IP address, password (HTTP basic authentication) and the result of the subrequest
  • HTTP referer validation
  • Supports PUT, DELETE, MKCOL, COPY and MOVE methods
  • FLV and MP4 transmission
  • Response Rate Limit
  • Limit the number of simultaneous connections or requests from an address
  • IP based geolocation
  • Supports Embedded Perl
Proxy Server
  • User redirection to an IMAP or POP3 server using an external HTTP authentication server
  • User authentication using an external HTTP authentication server and a connection redirection to an internal SMTP server
  • Authentication methods supported: POP3: USER / PASS, APOP, AUTH LOGIN / PLAIN / CRAM-MD5, IMAP: LOG IN, AUTH LOGIN / PLAIN / CRAM-MD5, SMTP: AUTH LOGIN / PLAIN / CRAM-MD5.
  • SSL support
  • STARTTLS and STLS support.
TCP / UDP
  • Generic TCP and UDP proxying
  • SSL and TLS SNI support for TCP
  • Load balancing and fault tolerance
  • Access control based on customer address
  • You can execute different functions depending on the client's address
  • Limit the number of simultaneous connections from an address
  • Access to record formats, stored record writing, fast record rotation and Syslog logging
  • IP based geolocation.

Now we will see how to install this application on Debian 9 in a practical way..

image


1. System update and how to install Nginx


The first step is to update the system packages by executing the following commands:
 apt-get updateapt-get upgrade 
Once the system is updated, we run the following line to install Nginx:
 apt-get install nginx 

image

There we will enter the letter S to confirm the download and update of the Nginx packages.

Once the installation is finished we will see the following:

image

By default, the Nginx server has been started in Debian 9 and this will be possible to verify with the netstat command and the ps command like this:

 ps aux | grep nginxpgrep nginx 

image

image

Login Join up!


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Nov 16, 2019 in Linux / Unix by backtothefuture (551k points) | 257 views
+3 votes
1 answer
asked Nov 4, 2019 in Linux / Unix by backtothefuture (551k points) | 245 views
+3 votes
1 answer
asked Nov 19, 2019 in Linux / Unix by backtothefuture (551k points) | 242 views
+5 votes
1 answer
asked Oct 3, 2019 in Linux / Unix by backtothefuture (551k points) | 246 views
+3 votes
1 answer
asked Sep 2, 2020 in Linux / Unix by backtothefuture (551k points) | 553 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users