1. Yum Install httpd httpd-manual installation Service
2, rpm-ql httpd view httpd have installed those files
3, enter, etc/httpd/conf/httpd.conf edit
Listen 80 Default Port
Directory "/var/www/html" site default path
Service httpd start to activate HTTPD services
Ss-ntl to see if the port httpd port is started
Create a new page in the/var/www/html/directory
If you want to modify the default port or path, please reread or restart it.
Service httpd Reload Reread
Service httpd Restart Restart
Browser input IP address for testing
Attention:
If you reread or do not display the page under the new path after modifying the default path, it may be the cause of the firewall,
Getenforce View firewall status
If it's enforcing mode
Running Setenforce 0 shutting down the firewall
Directory "/var/www/
Note----HTTPD installation start-up process