Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个奇怪的问题。我正在使用 Apache 服务来配置我的 Windows 服务。根据 Procrun,我的批处理文件应该配置了启动和停止服务。我的问题是当我启动我的应用程序时,启动服务被执行。但不是停止服务。我有点困惑。我已经为此工作了很长时间。没弄好。。有什么办法吗?
您可以粘贴用于安装服务的命令,即 prunsrv //IS//YourService ...
我也有一些问题。
我创建了另一个线程,当我启动服务时,线程正在启动,当我停止服务时,我设置了中断标志并且线程正在停止,这工作正常。
这有一个问题——如果你有一些任务需要运行,即清理——它们可能不会被调用。仍在为那一点苦苦挣扎-但我可以停止服务没问题。