Reputation: 81
my friend has been trying to install web server via RHEL, but this error has pop out, can anybody explain why does this happens? Is it because of the firewall/ports has not been open or am i using the wrong command?
Upvotes: 1
Views: 44
Reputation: 299
Follow these steps.
Step 1: yum install httpd -y
This will install Apache
Step 2: systemctl enable httpd.service
Step 3: systemctl start httpd.service
Step 4: firewall-cmd --permanent --add-port=80/tcp
Step 5: firewall-cmd --reload
After all this steps are done open your web browser and goto http://localhost or http://127.0.0.1
Your commands looks OK. But it's weird it's not recognizing systemctl.
Can I know the what is this system is. Is it a test RHEL setup ?
Upvotes: 1