1. 安装httpd

yum install httpd #安装apache

2. 启动httpd

systemctl start httpd.service  #启动apache

3. 随服务器自启动

systemctl enable httpd.service #启用自动开启

4.防火墙开通80

firewall-cmd --zone=public --add-port=80/tcp --permanent #添加80端对开对外
firewall-cmd --reload #重启防火墙 必须重启才能生效

5. 配置文件

/etc/httpd/conf/httpd.conf   #配置文件目录

 

相关文章:

  • 2022-01-10
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-07-05
  • 2021-11-28
猜你喜欢
  • 2021-12-18
  • 2021-11-03
  • 2021-05-29
  • 2022-12-23
  • 2021-12-18
相关资源
相似解决方案