EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 91


SIMULATION -

Configure your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.

Show Answer
Correct Answer:

To configure your web services, follow these steps: First, navigate to the web directory by using the command `cd /var/www/html`. Then, download the specified file using `wget http://instructor.example.com/pub/serverX.html`. Move the downloaded file as the main index file using `mv serverX.html index.html`. To ensure the web service (Apache httpd) is running, restart the service with `/etc/init.d/httpd restart`. Finally, to make the service start automatically after a reboot, use the command `chkconfig httpd on`.

Discussion

2 comments
Sign in to comment
adolfoale
Jan 17, 2021

In RHEL8: # systemctl enable --now httpd.services

STFN2019
Sep 24, 2021

# systemctl status httpd (check if apache is running) # systemctl start httpd (if not started already) # systemctl enable httpd (enable upon boot) # wget http://instructor.example.com/pub/serverX.html

wizojlo
Feb 16, 2024

The file should be downloaded to /var/www/html, so before doing wget, change directory. #cd /var/www/html