In part 1 of this series I installed and configured keepalived in preparation for installing nginx+.
In this part, I install nginx+.
Other articles in the series:
- Installing and configuring keepalived
- Installing nginx+
- Configuring nginx+ for Microsoft Exchange
- Configuring Microsoft Exchange
- Tidying up
On each VM, create the /etc/ssl/nginx directory:
mkdir -p /etc/ssl/nginx
Download CA.crt to /etc/ssl/nginx:
wget https://cs.nginx.com/static/files/CA.crt -P /etc/ssl/nginx
As part of your nginx+ trial or when you bought the software, you will have been provided a link to nginx-repo.key and nginx.repo.crt. Download these and place in /etc/ssl/nginx:
mv nginx-repo.key nginx.repo.crt /etc/ssl/nginx
Next, create a yum repository to install nginx+:
wget https://cs.nginx.com/static/files/nginx-plus-6.repo -P /etc/yum.repos.d
Then use yum to install:
yum install -y nginx-plus
If there is any issue with CA.crt (ie. it is missing or the permissions are not set correctly) then yum will not install the software. The same goes for nginx.repo.crt.
Finally, enable the service on both VMs:
chkconfig nginx on
That’s all there is to the nginx+ installation.
In part 3, I configure nginx+ to load-balance the Microsoft Exchange environment.