cike0415 发表于 2018-11-24 07:08:51

apache http server windows 下的安装

  如何在 Windows XP 环境下安装 Apache HTTP Server。
下载 Apache HTTP Server 2.2.8
  Apache 的官方网站是 http://apache.org/。
  Apache HTTP Server 的下载页面是http://httpd.apache.org/download.cgi,该页中会提示你可供下载的镜像 (Mirror) 站点,比如http://apache.mirror.phpchina.com。在这个镜像站点,你会看到很多目录,请选择 httpd/ 目录,然后选择 binaries/ ,然后选择 win32/,然后选择 apache_2.2.8-win32-x86-no_ssl.msi 下载。
  或者你可以直接输入该安装文件所在页面的 URL 路径:http://apache.mirror.phpchina.com/httpd/binaries/win32/。
在 Windows XP 环境下安装 Apache HTTP Server 2.2.8
  双击 apache_2.2.8-win32-x86-no_ssl.msi 文件,开始安装 Apache HTTP Server 2.2.8。
  你会看到以下画面:
http://www.blabla.cn/asdocs/php/install_apache_228_010.gif
  点击 Next,然后选择 I accept the terms in the license agreeement,
http://www.blabla.cn/asdocs/php/install_apache_228_020.gif
  点击 Next ,会看到下图:
http://www.blabla.cn/asdocs/php/install_apache_228_030.gif
  然后点击 Next,进入 Server Information 画面,如下图:
http://www.blabla.cn/asdocs/php/install_apache_228_040.gif
  在 Network Domain 的文本框里输入 localhost。
  在 Server Name 的文本框里输入 localhost。
  在 Administrator's Email Address 里随便输入一个 Email 地址
  然后选择 for All Users, on Port 80, as a Service -- Recommended。
  点击 Next,选择 Typical ,如下图:
http://www.blabla.cn/asdocs/php/install_apache_228_050.gif
  点击 Next,进入 Destination Folder 画面,如下图:
http://www.blabla.cn/asdocs/php/install_apache_228_060.gif
  点击 Next,会看到安装完成画面,如下图,点击 Finish 结束安装。
http://www.blabla.cn/asdocs/php/install_apache_228_080.gif
  如果你还看到下面这个黑黑 Dos 界面,请不同担心,按 ESC 键退出即可。等会我们需要修改一下 Apache HTTP Server 的配置文件。
http://www.blabla.cn/asdocs/php/install_apache_228_070.gif
修改 Apache HTTP Server 配置文件
  安装完 Apache HTTP Server 之后,还需要修改一下配置文件。
  Apache 的配置文件路径如下:
  C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
  安全起见,建议你先备份一下这个文件。
  然后用 Notepad 打开这个文件,修改端口设置。
  将 Listen 80 改成 Listen 8080
  将 ServerName localhost:80 改成 ServerName localhost:8080。
  保存文件。
启动 Apache Service
  修改完配置文件之后,可以启动 Apache HTTP Server 了。
  在 Windows 开始菜单选择 Start --> All Programs --> Apache HTTP Server 2.2 --> Monitor Apache Servers,点击后,你会看到在 Taskbar 有个小红图标,双击图标打开 Apache Service Monitor 画面,如下图。
  点击 Start 按钮开启 Apache Service。
http://www.blabla.cn/asdocs/php/install_apache_228_100.gif
测试 Apache HTTP Server 是否正常运行
  在浏览器里输入 http://localhost:8080/index.html,或者直接输入 http://localhost:8080/。如果 Appache HTTP Server 正常运行的话,浏览器会显示该文件。如下图:
http://www.blabla.cn/asdocs/php/install_apache_228_090.gif
  该文件的路径是:C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.html
  htdocs 是 Apache HTTP Server 的缺省根目录。

页: [1]
查看完整版本: apache http server windows 下的安装