Install Nginx HTTP server by using specific version package - RHEL 8  Install Nginx HTTP Server Installation

 Method 3

#Login as root user and execute the below command for install nginx http server.
sudo su -
  1. yum -y install wget
  2. wget https://nginx.org/packages/rhel/6Server/x86_64/RPMS/nginx-1.18.0-2.el6.ngx.x86_64.rpm
  3. yum install nginx-1.18.0-2.el6.ngx.x86_64.rpm
  4. systemctl start nginx
  5. systemctl enable nginx
  6. nginx -V

Sunday, March 21, 2021

Install Nginx HTTP server - RHEL 8 


 
Install Nginx HTTP Server Installation

 Method 2

#Login as root user and execute the below command for install nginx http server.
sudo su -
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

sudo yum install nginx

#Enable the service as follows.

systemctl enable nginx.service

#Start the HTTP server as follows.

systemctl start nginx.service

To check the version we will use below command

nginx -V

 


Wednesday, August 12, 2020

Install Nginx HTTP server - RHEL 8 

 


Install Nginx HTTP Server Installation 
Method -1

#Login as root user and execute the below command for install nginx http server.
sudo su -
yum install nginx -y

#Enable the service as follows.

systemctl enable nginx.service

#Start the HTTP server as follows.

systemctl start nginx.service

Important Points
  1.   nginx.conf file is the configuration file for Nginx HTTP server, which is available in         /etc/nginx/  directory.
  2. Logs will be available in /var/log/nginx/ directory.

Comments

Popular posts from this blog