From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Install NGINX on Enterprise Linux 7 - Red Hat Enterprise Linux Tutorial
From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
Install NGINX on Enterprise Linux 7
- [Instructor] NGINX is not included in the stock Enterprise Linux software repository, so we'll need to add a new one. In the exercise files, I've included a repo file for chapter nine. Let's copy it to yum.repos.d. There are two different files depending on if you're using Red Hat Enterprise Linux 7 or CentOS 7. Make sure you copy the right one. If you're using CentOS 7 as I am, then go to your home directory and type, sudo cp ExerciseFiles/Ch09 /etc/yum.repos.d /nginx-centos.repo /etc /yum.repos.d and hit Enter. Type in your password if prompted. If you're using Red Hat Enterprise Linux 7, change the file name to nginx-redhat.repo. Now, to install NGINX, type in sudo yum install -y nginx and hit Enter.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.