您的位置:首页 > 运维架构 > Apache

apache在windows xp下的安装

2007-05-22 17:32 337 查看
apache在windows xp下的安装

版本:apache_2.2.4-win32-x86-no_ssl.msi

1. 双击安装"apache_2.2.4-win32-x86-no_ssl.msi",默认端口“8080”
2. 安装完成之后,操作系统右下角出现apache服务图标,但服务未启动。
鼠标停留在图标上,提示“No services installed”。
点击进入“Apache Service Monitor”界面, Service Status列表为空。
3. 找到apache2.2目录下的bin目录,目录中有“apache.exe”文件。命令行进入DOC窗口,
键入:d:/ (进入D盘,具体由您的安装路径决定)
键入:cd apache2.2/bin (进入bin目录)
键入:httpd.exe -k install -n apache2.2 (添加apache服务)
此时操作系统的“服务”列表中会出现"apache2.2",但运行后失败,提示信息:
The Apache service named reported the following error:
>>> ServerAdmin takes one argument, The email address of the server administrator .
4. 解决方法:

# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin
改为:
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#ServerAdmin
5. 再次运新apache2.2,运行成功。
6. 浏览器中键入:http://localhost:80 (如果端口为80,可不写),运行结果“It works!”,安装成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: