exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 57 discussion

Actual exam question from CompTIA's XK0-005
Question #: 57
Topic #: 1
[All XK0-005 Questions]

SIMULATION -
Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.

INSTRUCTIONS -
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing “help” in the terminal will show a list of relevant event commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Show Suggested Answer Hide Answer
Suggested Answer: yum install httpd
systemctl --now enable httpd
systemctl status httpd
netstat -tunlp | grep 80
pkill <processname>
systemctl restart httpd
systemctl status httpd

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 1 year, 4 months ago
sudo yum install httpd systemctl start httpd systemctl enable httpd systemctl status httpd
upvoted 15 times
tutita
1 year, 1 month ago
correct, but no need to sudo since its already on root
upvoted 6 times
...
...
MissAllen
Highly Voted 1 year, 8 months ago
Not sure why we need all those commands to install Apache and confirm it is running with the defaults. I would just do: yum install httpd systemctl enable httpd systemctl start httpd systemctl status httpd
upvoted 6 times
Lwarder1
1 year, 4 months ago
Actually after looking again you have the right commands but wrong order: yum install httpd systemctl start httpd systemctl enable httpd systemctl status httpd
upvoted 5 times
...
...
Damon54
Most Recent 11 months, 2 weeks ago
dnf install -y httpd Using a combination of cat and grep, confirm Apache's listen 80 value. cat /etc/httpd/conf/httpd.conf | grep -i "listen 80" Start and enable the httpd service by using systemctl and the appropriate subcommands provided below: systemctl start httpd systemctl enable httpd systemctl is-active httpd Enter the following command to configure the firewall to permit HTTP traffic: firewall-cmd --zone=public --add-service=http –permanent firewall-cmd –reload
upvoted 1 times
...
Lwarder1
1 year, 5 months ago
Because you are correct. This practical was on xk0-004 and your explanation is correct.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...