将Apache手动安装成Windows的服务 可以选择在安装Apache时自动将其安装为一个服务.如果选择"for all users",那么Apache将会被安装为服务. 如果选择了"only for the Current User",可以在安装后手动将Apache注册为服务.注意,必须是Administrators组的成员才能成功注册服务. 使用Apache Service Monitor工具,可以查看和管理你所在网络上的所有机器上安装的Apache服务的状态…
using Microsoft.Win32; using System; using System.Collections; using System.Collections.Generic; using System.Configuration.Install; using System.Linq; using System.Reflection; using System.ServiceProcess; using System.Text; namespace TextWindowsServ…