企业需求:
配置一个HTTP服务器,通过http://dtop5.dn.ws.com 可以被访问到,
发布的页面请从http://ip/dir/ple.html下载。
复习目标:
复习巩固http服务器。参见RHCE_254教材P172。
步骤:
1.检查httpd是否安装。并保证服务正常启动。
[root@dtop5 ~]# rpm -qa |grep httpd
[root@dtop5 ~]# yum -y install httpd
[root@dtop5 ~]# chkconfig httpd on
[root@dtop5 ~]# servcie httpd start
2.下载网页到目录/var/www/html/下,并改名为index.html

3.重启httpd服务,测试:
[root@dtop5 ~]# service httpd restart
