httpd服务的安装、配置

    httpd服务是架设网站的必须服务下面我就来说下怎么安装配置 

1.安装httpd服务

输入下面命令进行安装(如果没网络或者安装速度慢的请设置本地yum源进行安装,设置教程请点击这里查看

yum install httpd -y

 

安装完成后,输入下面的命令重启httpd服务

service httpd restart
或者
systemctl start httpd.service (有关systemctl的用法请到Linux分类里查看

 

4关闭系统防火墙。

service iptables stop 
或者
systemctl stop iptables.service

 

2、加入网站文件进行测试

进入/var/www/html目录,创建index.html文档编写或者用FTP软件接放样本到/var/www/html目录里(FTP软件推荐FileZilla)。

然后在浏览器输入http:// 服务器IP 查看就行了

posted @ 2016-10-15 20:20  KiraEXA  阅读(2381)  评论(0编辑  收藏  举报