CentOS7 install apache

1. yum install httpd

2. config /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
  ServerName www.linuxidc.local
  DocumentRoot /wwwroot/www/
</VirtualHost>
<Directory “/wwwroot/www/”>
    Requireall granted
</Directory>

3.systemctl enable httpd.service

4.systemctl start httpd.service

posted @ 2016-07-28 19:28  Alex~  阅读(193)  评论(0编辑  收藏  举报