Windows环境 Apache 安装后手动添加Service方法

来源:互联网 发布:中国网络电视全球直播 编辑:程序博客网 时间:2024/06/12 01:27

安装后如果需要手动添加Sevice,可以按照如下方法:

 

Apache版本:httpd-2.2.15_win32

Apache Service Monitor 提示:“No services installed”

 

安装Service

 

1)运行

2)键入命令:cmd

3)进入Apache安装目录下的bin目录:cd C:/Program Files/Apache Software Foundation/Apache2.2/bin

4)键入命令:httpd.exe -k install -n apache2.2

结果显示:

Installing the apache2.2 servece

The apache2.2 service is successfully installed.

 

删除Service

 

修改4)键入命令:httpd.exe -k uninstall -n apache2.2

结果显示:

Removing the apache2.2 service

The apache2.2 service has been removed successfully.

 

启动Service

键入命令:net start apache2.2

结果显示:

apache2.2 服务正在启动。

apache2.2 服务已经启动成功。

 

关闭Service

键入命令:net stop apache2.2

结果显示:

apache2.2 服务正在停止。

apache2.2 服务已经成功停止。

原创粉丝点击