apache服务

1。临时关闭防火墙 service iptables stop (chkconfig iptables off)

    临时selinux: setenforce 0

     永久关闭selinux: vim /etc/sysconfig/selinux

       将 SELINUX=disabled

2. 加载httpd协议软件包:yum install httpd -y

3.修改配置文件   vim /etc/httpd/conf/httpd.conf

       文件存储所在位置(DocumentRoot): '/var/www/html'

4service httpd restart

比较:echo 'test'>>/var/www/html/index.html

            echo  ‘test’>>/var/www/html/a.txt

5.网络测试

posted @ 2018-10-28 09:58  misswhy  阅读(105)  评论(0编辑  收藏  举报