安装apache


yum install httpd



现在配置下系统使得Apache能够随着系统启动而启动…

chkconfig --levels 235 httpd on


... 启动Apache:

/etc/init.d/httpd start

打开浏览器输入
http://127.0.0.1/
即可看到Apache的预留页。

然后在/var/www/html路径下创建文件index.html
内容为
<html>
<head>Welcome to my web.</head>

</html>

在浏览器中输入

http://127.0.0.1 或者 localhost

即可看到该网页。

Welcome to my web.
 posted on 2011-12-30 19:26  Jiang, X.  阅读(774)  评论(0编辑  收藏  举报