Fedora16配置Apache服务器

安装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.