Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Install NGINX Web Server on CentOS8 Server

Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy, and HTTP cache. What sets Nginx apart from other web servers is its ability to handle thousands of simultaneous connections with low memory usage! It’s known for its fast and efficient processing of HTTP requests, making it the perfect choice for high-traffic websites and web applications. Nginx is free and open-source software, released under the terms of the 2-clause BSD license.

Now let us have some fun!!

Objectives:
I. Update all packages on the server.
II. Install an NGINX Web Server
III. Enable the NGINX Server
IV. Adjust firewall rules
V. Obtain the public IP address and post it in your search bar to verify.

Essentials:
I. Command Line Terminal
II. Internet Service
III. Sudo capabilities

I. Update all packages on the server.

Update all packages on the CentOS8 server by entering the following command in the command line. This command will prompt you to enter your password. Lastly, type “Y” to finish the installation when the prompt appears.

Enter your Password and proceed to Objective II.

II. Install an NGINX Web Server

Install the DNF package manager by using the below command. This will install NGINX and all required material to your CentOS8 server. Lastly, type “Y” to finish the installation when the prompt appears.

III. Enable the NGINX Server

Post-installation run the below commands to enable NGINX to boot when the system starts.

IV. Adjust firewall rules

In order for your new NGINX web server to be accessed by external connections, it must run on port 80. Follows the command below to permanently enable HTTP connections on port 80.

To verify the firewall the above command was run correctly, please type this command.

Results should show as followed.

Note “HTTP” in the services line

Use the below command to apply all changes by “reloading” the firewall.
“Success” should appear following the command as displayed.

V. Obtain the public IP address and post it in your search bar to verify.

Lastly, run the below command to locate the IP address your new NGINX server will be using.

Use the IP address displayed in the command line and post it in your search bar to verify. Results should display as shown below.

Complete!

Congratulations you have just installed an NGINX Web Server on your CentOS8 Server using the command line.


How to Install NGINX Web Server on CentOS8 Server was originally published in TechManyu on Medium, where people are continuing the conversation by highlighting and responding to this story.



This post first appeared on TechManyu, please read the originial post: here

Share the post

How to Install NGINX Web Server on CentOS8 Server

×

Subscribe to Techmanyu

Get updates delivered right to your inbox!

Thank you for your subscription

×