gpt4 book ai didi

apache - Powershell 不退出

转载 作者:行者123 更新时间:2023-11-28 22:27:45 37 4
gpt4 key购买 nike

cd "C:\apache-tomcat-7.0.67\bin"
.\shutdown.bat
.\startup.bat

我在 powershell 文件中有上述命令,但问题是,powershell 在 .\startup.bat 之后没有退出。

所以,为了解决这个问题,我使用了以下命令,但是 apache 不适合我

START "C:\apache-tomcat-7.0.67\bin\startup.bat"

最佳答案

如果 startup.bat 没有退出,用 Start-Process 启动它没有 -wait 参数。

Start-Process .\startup.bat

(使用工作目录中的相对路径,不是全局路径)

关于apache - Powershell 不退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35195338/

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