如何在 windows 中 运行 apache 的 httpd 守护进程,在后台?
How to run the httpd daemon process for apache, in background in windows?
我下载了 httpd-2.4.23-x64-vc14,解压缩,在 httpd.conf 中更改了一些配置,现在当我 运行 httpd.exe,我的本地主机 运行很好,但我不想一直看到那个命令提示符,然后在每次关闭系统时重新启动它。如何让它像服务一样,在我每次启动机器时自动启动。
运行 Apache 作为 Windows 服务
Apache 附带一个名为 Apache Service Monitor 的实用程序。有了它,您可以查看和管理网络上任何机器上所有已安装的 Apache 服务的状态。为了能够使用监视器管理 Apache 服务,您必须首先安装该服务(通过安装自动安装或手动安装)。
您可以在 Apache bin 子目录的命令提示符下将 Apache 安装为 Windows NT 服务,如下所示:
httpd.exe -k install
您必须使用允许注册服务的 Windows 帐户来执行此操作,可能是管理员帐户。
Shamelessly RIPPED OFF from of all the strange places THE MANUAL
Go figure.... who would have thought of looking there!
然后检查 windows 服务监视器
WindowsKey+R
services.msc
Apache
设置为 Startup Type = Auto
以便它作为引导的一部分启动
我下载了 httpd-2.4.23-x64-vc14,解压缩,在 httpd.conf 中更改了一些配置,现在当我 运行 httpd.exe,我的本地主机 运行很好,但我不想一直看到那个命令提示符,然后在每次关闭系统时重新启动它。如何让它像服务一样,在我每次启动机器时自动启动。
运行 Apache 作为 Windows 服务
Apache 附带一个名为 Apache Service Monitor 的实用程序。有了它,您可以查看和管理网络上任何机器上所有已安装的 Apache 服务的状态。为了能够使用监视器管理 Apache 服务,您必须首先安装该服务(通过安装自动安装或手动安装)。
您可以在 Apache bin 子目录的命令提示符下将 Apache 安装为 Windows NT 服务,如下所示:
httpd.exe -k install
您必须使用允许注册服务的 Windows 帐户来执行此操作,可能是管理员帐户。
Shamelessly RIPPED OFF from of all the strange places THE MANUAL
Go figure.... who would have thought of looking there!
然后检查 windows 服务监视器
WindowsKey+R
services.msc
Apache
设置为 Startup Type = Auto
以便它作为引导的一部分启动