Apache服务启动

来源:互联网 发布:dnf荣誉祝福数据 编辑:程序博客网 时间:2024/05/16 05:07

Windows环境 Apache 安装后手动添加Service方法
2011-05-26 16:48
安装后如果需要手动添加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

Windows环境 Apache 安装后手动添加Service方法
2011-05-26 16:48
安装后如果需要手动添加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

键入命令:net start apache2.2

结果显示:

apache2.2 服务正在启动。

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

关闭Service

键入命令:net stop apache2.2

结果显示:

apache2.2 服务正在停止。

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

 

0 0
原创粉丝点击