Install Nginx HTTP Server Installation
#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
- 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.