1、安装HTTPD和httpd-manual软件包

# yum -y install http httpd-manual

2、创建/var/www/html/index.html 内容是 Hello World ,暂时作为 web 服务的主页

# echo 'hello world' > /var/www/html/index.html

3、启动HTTPD服务

# systemctl restart httpd
# systemctl enable httpd

4、开启防火墙规则,放行http

# firewall-cmd --permanent --add-service=http
success
# firewall-cmd --reload 
success

5、尝试访问创建的web服务

Linux系统Apache服务 - 配置HTTP的默认主页

 

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-06-26
  • 2021-07-14
  • 2022-01-15
  • 2021-06-29
猜你喜欢
  • 2021-12-15
  • 2021-11-16
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-07-30
  • 2021-05-14
相关资源
相似解决方案