日期:2014-05-17  浏览次数:20976 次

如何在vista上安装apache2?
请问如何在vista上安装apache2?
我使用msi安装文件,但是在安装过程中出现服务无法注册和启动的错误。

注册服务时:

Installing   the   Apache2.2   service
(OS   5)拒绝访问。     :   Apache2.2:   Failed   to   add   the   RunServices   registry   entry.

启动服务时:

[Fri   Mar   23   01:20:23   2007]   [error]   (OS   2)系统找不到指定的文件。     :   No   installed
service   named   "Apache2.2 ".

请高手帮忙解决这个问题,谢谢。


------解决方案--------------------
你需要管理员权限才可以安装系统服务。

vista默认登录用户是普通用户。
------解决方案--------------------
好像目前是装不上的.

服务机制不同.


------解决方案--------------------
试试

First of all, I turned off User Account Control:

1. Start > Control Panel
2. User Accounts
3. Click "Turn User Accounts Control on or off " Link.
4. Uncheck "Use Uer Account Control " Box
5. Click OK
6. Restart Windows

I then downloaded the MSI Apache installer version from Apache.org, and saved it to my desktop. I then renamed the file to apache.msi

I then ran the installer through the command prompt running in Administrator mode:

1. Start > All Programs > Accessories
2. Right-Click "Command Prompt " and choose "Run as Administrator "
3. Change to your desktop folder (usually cd desktop)
4. Type the following: "msiexec /i apache.msi "
5. Run through the Apache installer as normal.

After Apache had been installed and I had restarted my machine, I wanted to get rid of the annoying red error box that appears. This is due to the "Monitor Apache Services " program trying to load at startup.

Delete it from the startup folder of the start menu (Start > All Programs > Startup)

You should then be able to start and stop Apache using the icons in the start menu under the Apache > Control Apache Server folder. Better still, why not make a shortcut to them on your desktop for easier access.