CentOS 安装apache

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时候这个文件就被读入到这个主配置文件中。 

 

posted on 2013-09-12 20:12  小浪鼓  阅读(178)  评论(0编辑  收藏  举报

导航