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

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Nocker888/article/details/106996373