如何手动创建一个Apache Windows服务 [英] How to Manually create an Apache Windows Service

查看:133
本文介绍了如何手动创建一个Apache Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心删除我的Apache的Windows服务试图安装其他Apache Web服务器。有谁知道我怎么可以创建CMD另一个Apache的窗口服务?我试图资深大律师创造... ...但我缺少一个脚本就完了像-k开始?不知道我需要它的结束...

I accidentally removed my Apache windows service trying to install another Apache web server. Does anyone know how I can create another Apache windows service from cmd? I tried "sc create ..." but I am missing a script on the end like -k start? Not sure what I need for the end of it...

我正在运行的Apache 2.2

I am running Apache 2.2

感谢您

推荐答案

在Apache的2.4可执行文件已更名为httpd.exe,该命令是:

On Apache 2.4 the executable have changed name to httpd.exe, the command would be:

httpd.exe -k install -n "Apache2.4"

,以便给该服务的不同名称的名称开关。

With a name switch in order to give the service a distinct name.

这篇关于如何手动创建一个Apache Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆