Please Note :- Perform the below commands based on your question server, user name & other details might differ . So please read task carefully before executing. All the Best 👍
1. At first copy sample index file from jump server to backup server
scp /home/index.html clint@stbkp01:/tmp/
2. Login on Backup server ssh clint@stbkp01
3. Switch to root user : sudo su -
3. Install the packages Apache & Nginx.
yum install httpd
4. For Nginx , 1st we need to install epel repo
yum install epel-release
yum install nginx
5. Edit the httpd.conf & change the Listen port from 80 to 6000
( Please refer to your task, also watch video below)
vi /etc/httpd/httpd/config
6. Edit Nginx file and do the below changes ( Refer video for more details )
vi /etc/nginx/nginx.conf
7. Copy the index.html file from /tmp to /var/www/html/
cp /tmp/index.html /var/www/html/
8. Start the httpd and nginx services
9. validate the task by below commands
curl http://172.16.238.16:8095
curl http://172.16.238.16:6000
Happy Learning!!!!
0 Comments