- Firstly, we need to create a directory to store the repository certificates in:
mkdir -p /etc/ssl/nginx
- Next, you will need to download both the private and public certificates from the NGINX customer portal (https://cs.nginx.com), which should be named:
nginx-repo.key nginx-repo.crt
- Copy these files into the directory created. We can then ensure that the root CA certificate bundle has been installed:
yum install -y ca-certificates
- We can now install the NGINX Plus repository:
yum-config-manager --add-repo \
https://cs.nginx.com/static/files/nginx-plus-7.repo
- With the repository keys ready and the repository installed, we can now install NGINX Plus:
yum install -y nginx-plus
- If you have the correct keys, this will install NGINX Plus. You can confirm the installation is correct by inspecting the version:
nginx -v
This should give you an output similar to the following:
nginx version: nginx/1.11.10 (nginx-plus-r12-p3)
- Lastly, we can start and ensure that NGINX Plus automatically starts after boot:
systemctl enable nginx systemctl start nginx
The installation of NGINX Plus is now complete.