20得票6回答
Spring Boot JAR作为Windows服务

我正在尝试使用procrun包装一个Spring Boot“uber JAR”文件。 以下命令按预期运行: java -jar my.jar 我需要我的Spring Boot JAR文件在Windows启动时自动启动。 对此最好的解决方案是将JAR文件作为服务运行(与独立Tomc...

16得票9回答
prunsrv.exe服务无法启动

我正在尝试使用prunsrv.exe为一个应用程序安装并启动服务。 我能够成功安装服务,但服务无法启动并给了我一个错误。 以下是使用prunsrv.exe安装服务时使用的配置。set SERVICE_NAME=TestService REM Service log configura...

14得票10回答
Apache Commons Daemon“Failed creating Java”错误

我正在尝试使用Apache Commons Daemon启动Windows服务。它可以在Windows XP上工作,但我正在尝试在Windows 7 x64 上运行它。启动失败,并且在日志中出现以下错误:[2010-12-13 17:21:19] [info] Commons Daemon p...

13得票4回答
使用Procrun安装的Windows服务可以在//TS模式下运行,但无法作为Windows服务启动,提示"已启动然后停止"。

我通过运行以下命令将标准可执行的jar文件安装为Windows服务:> prunsrv.exe //IS//"My Service" --Install="C:\path-to-prunsrv.exe" --Jvm=auto \ --Startup=auto --StartMode=...