yum 安装apache

yum –y install httpd

 设置开机启动

chkconfig --levels 235 httpd on

 启动

/etc/init.d/httpd start

 默认配置文件的目录

/etc/httpd/conf/httpd.conf

 

独立出配置文件 xxx.conf (通常是域名.conf)

/etc/httpd/conf.d/*.conf

启动apache时候这个文件就被读入到这个主配置文件中。 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-06-09
  • 2022-03-01
  • 2022-02-16
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2021-05-18
  • 2021-07-14
  • 2021-07-16
相关资源
相似解决方案