Use Apache to build a Web page and access it normally
Using the Yum install httpd-y command will automatically go to the Yum source to get the required RPM package
Wait for installation to successfully prompt complete
Because the firewall is turned on, you need to use the command Vi/etc/sysconfig/iptables to edit the firewall, add a rule to release HTTP 80 port
Restart Firewall service Iptables after saving restart
HTTP Web files are typically saved in the/var/www/html folder, where you create a index.htm file using the Touch index.html command
Edit the new file using VI, and write something in the file. Test
Write well save exit edit mode
Restart the HTTP service using the command service httpd restart
Restart successful you can use the browser to enter the server IP to browse the Web file you just created
Linux configuration an HTTP Web page