CentOS6.5搭建Apache
1.安装
// 安装httpd 服务
yum -y install httpd*
2.启动httpd服务和修改自启动
// 启动httpd服务
service httpd start
// 修改开机启动
chkconfig httpd on
3.打开firefox浏览器 测试 127.0.0.1
4.修改配置文件
这就是后续需要做的配置了
服务目录 | /etc/httpd |
主配置文件 | /etc/httpd/conf/httpd.conf |
网站数据目录 | /var/www/html |
访问日志 | /var/log/httpd/access_log |
错误日志 | /var/log/httpd/error_log |