About Nginx
Nginx is a high performance web server software. It is a much more flexible and lightweight program than Apache HTTP Server.
This tutorial will teach you how to install and start Nginx on your CentOS 7 server.
Step One—Add Nginx Repository
To add the CentOS 7 EPEL repository, open xshell and use the following command:
Step Two—Yum Install Nginx
Now that the Nginx repository is installed on your server, install Nginx using the following
yum
command:Step Three—Start Nginx Server
Nginx will not start automatically after it is installed, so you need to use the systemctl command of Centos 7 to start the nginx server.
If you are running a firewall, run the following commands to allow HTTP and HTTPS traffic:
http://server_domain_name_or_IP/
As follows:
Before continuing, you will probably want to enable Nginx to start when your system , enter the following command:
No comments:
Post a Comment
Note: only a member of this blog may post a comment.