RHCSA Exam Objectives: Configure a system to run a default configuration HTTP server

Опубликовано: 03 Июль 2026
на канале: darkarrally
1,379
6

RHCSA Exam Objectives::Deploy, configure, and maintain systems
Configure a system to run a default configuration HTTP server

The default http server in RHEL 6 is Apache.

Find the package:
============

yum search httpd

Install the package:
==============

yum install httpd -y


Start the service:
============

service httpd start

Test it by opeing http://localhost in a brower:
===============================

elinks http://localhost
or
firefox http://localhost &

Configure the service to auto start on next reboot:
===================================

chkconfig httpd on

Confirm by running :
==============

chkconfig --list httpd

Open a hole in the firewall:
==================

iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save

Confirm the rule is saved:
==================

iptables -L
cat /etc/sysconfig/iptables

Should someting go wrong, check Apache is listening on port 80:
==============================================

netstat -tulnp | grep httpd