![web file server software for centos 7 web file server software for centos 7](https://i.ytimg.com/vi/5JhE60-IVig/maxresdefault.jpg)
#Web file server software for centos 7 how to
To do so, enter the following command: sudo systemctl enable rviceĬongratulations! Nginx is now installed and running! How To Find Your Server’s Public IP Address If you see this page, then your web server is now correctly installed.īefore continuing, you will probably want to enable Nginx to start when your system boots. You will see the default CentOS 7 Nginx web page, which is there for informational and testing purposes. You can do a spot check right away to verify that everything went as planned by visiting your server’s public IP address in your web browser (see the note under the next heading to find out what your public IP address is if you do not have this information already): server_domain_name_or_IP/ Sudo firewall-cmd -permanent -zone=public -add-service=https If you are running a firewall, run the following commands to allow HTTP and HTTPS traffic: sudo firewall-cmd -permanent -zone=public -add-service=http To get Nginx running, type: sudo systemctl start rvice Step Three-Start Nginx on your Web Server Now that the Nginx repository is installed on your centos 7 server, install Nginx using the following yum command: sudo yum install nginxĪfter you answer yes to the prompt, Nginx will finish installing on your virtual private server (VPS). Sudo rpm -Uvh Step Two-Install Nginx on your Web Server To add the CentOS 7 Nginx yum repository, open terminal and use the following command: How To Find Your Server’s Public IP Addressīefore you proceed installation of Nginx, make sure your server is updated with stable CentOS 7 Step One-Add Nginx Repository.Step Three-Start Nginx on your Web Server.Step Two-Install Nginx on your Web Server.