EX300 RHCE Exam Practice Questions install httpd

Question : How will you Install the http services and then make the webserver start automatically when server reboots ?

Step 1. Install the http server using yum command


[student@server10 ~]$ sudo yum -y install

Step 2.Create the /var/www/html/index.html file with a text editor as user root, and add the content “hello World!”:

Step 3.Start and enable the http services:

[student@server10 ~]$ sudo systemctl start httpd.service
[student@server10 ~]$ sudo systemctl enable httpd.service

Step 4.Make sure all the relevant ports for http on the firewall on your server.

[student@server10 ~]$ sudo firewall-cmd –permanent –add-service=http
[student@server10 ~]$ sudo firewall-cmd –reload

if you want to Practice more EX300 Exam Questions and learn about firewall-cmd then try out this new book for increasing your chances to pass the RHCE exam for RHEL 7

  • Learn Red Hat Certified Engineer – Exam EX300 Training from a professional trainer from your own desk.
  • Visual training method, offering users increased retention and accelerated learning
  • Breaks even the most complex applications down into simplistic steps.
  • Easy to follow step-by-step lessons, ideal for all

Leave a comment