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 -
- yum -y install wget
- wget https://nginx.org/packages/rhel/6Server/x86_64/RPMS/nginx-1.18.0-2.el6.ngx.x86_64.rpm
- yum install nginx-1.18.0-2.el6.ngx.x86_64.rpm
- systemctl start nginx
- systemctl enable nginx
- 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
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
- nginx.conf file is the configuration file for Nginx HTTP server, which is available in /etc/nginx/ directory.
- Logs will be available in /var/log/nginx/ directory.
Comments
Post a Comment