gpt4 book ai didi

windows - 使用批处理文件在后台启动 Apache

转载 作者:可可西里 更新时间:2023-11-01 11:08:19 24 4
gpt4 key购买 nike

我正在编写一个将启动 Apache 的批处理文件,并在 Web 浏览器中打开 http://localhost。最简单的形式:

@start apache\bin\httpd.exe
@start http://localhost

这会导致批处理文件运行 Apache,打开网页,然后退出。但是,httpd.exe 在其自己的终端窗口中打开,而不是在后台隐藏打开。如何在没有可见窗口的情况下打开它?

最佳答案

试试这个:

@start /b "" apache\bin\httpd.exe

关于windows - 使用批处理文件在后台启动 Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15605467/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com