zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    12
    11
    10
    9
    8
    7
    6
    5
    4
    3
  • 原文地址:https://www.cnblogs.com/johnpher/p/2570588.html
Copyright © 2011-2022 走看看