![]() If the Nginx has not started yet, you start by typing: You can check the status of your Nginx web server by typing: sudo systemctl status nginx Nginx should be up and running on your server. If you answer yes Nginx will finish the installation while answering no will stop the installation of Nginx. ![]() ![]() Nginx will prompt you with yes or no option. Now that the Nginx repository is installed, we can move further to install Nginx on CentOS by using yum command: sudo yum install Nginx Since we are using a sudo command, you will be asked to enter the regular user’s password to check permissions to run the command and operations get executed with root privileges. To do that, run: sudo yum install epel-release -y Since Nginx is not available by default in the CentOS repository, we need to install EPEL repository on our server. Now that Linux (CentOS) is already installed and software packages are updated to the latest version, we will be installing Nginx, MySQL and PHP. You will require an SSH client like PuTTY (Windows) or terminal shell (Linux, macOS) to connect to your server. ![]() This guide requires you to have root access of your server. To do that run the following command: sudo yum -y update Before we install LEMP on CentOS, update the software packages of your server to the latest version.
0 Comments
Leave a Reply. |