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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-19
  • 2021-11-05
  • 2022-01-12
  • 2021-10-07
猜你喜欢
  • 2021-07-18
  • 2021-08-07
  • 2022-01-23
  • 2021-10-04
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案