1. yum install httpdlinux
2. config /etc/httpd/conf/httpd.confui
<VirtualHost *:80>
ServerName www.linuxidc.local
DocumentRoot /wwwroot/www/
</VirtualHost>
<Directory 「/wwwroot/www/」>
Requireall granted
</Directory> service
3.systemctl enable httpd.serviceyum
4.systemctl start httpd.servicevi