Service Can';t在windows 7 64位下启动cq5服务
一年前,我成功地将CQ5作为windows 7 32位下的windows服务安装。之后,我切换到Windows764位。目前我有一个使用CQ5的项目,所以我再次安装它(在64位窗口下)。CQ5使用命令行Service Can';t在windows 7 64位下启动cq5服务,service,windows-7,64-bit,aem,Service,Windows 7,64 Bit,Aem,一年前,我成功地将CQ5作为windows 7 32位下的windows服务安装。之后,我切换到Windows764位。目前我有一个使用CQ5的项目,所以我再次安装它(在64位窗口下)。CQ5使用命令行crx quickstart/bin/start.bat启动良好。另外,当使用命令instsrv.bat cq5安装为服务时,我看不到任何问题: Installing service cq5 runs in E:\servers\cq5-server\author\crx-quicks
crx quickstart/bin/start.bat
启动良好。另外,当使用命令instsrv.bat cq5
安装为服务时,我看不到任何问题:
Installing service cq5
runs in E:\servers\cq5-server\author\crx-quickstart
uses E:\servers\cq5-server\author\crx-quickstart\opt\helpers\\..\..\app\cq-quickstart-5.5.0-standalone.jar
starts org.apache.sling.launchpad.app.Main
redirects output to: E:\servers\cq5-server\author\crx-quickstart\logs\startup.log
但是,当我运行net start cq5
时,我得到一个错误,如下所示:
The cq5 service is starting.
The cq5 service could not be started.
A service specific error occurred: 0.
More help is available by typing NET HELPMSG 3547.
检查日志文件commons-daemon.2013-09-01.log,我看到:
[2013-09-01 23:26:36] [info] Commons Daemon procrun (1.0.8.0 64-bit) started
[2013-09-01 23:26:36] [info] Running 'cq5' Service...
[2013-09-01 23:26:36] [info] Starting service...
[2013-09-01 23:26:36] [error] Failed creating java
[2013-09-01 23:26:36] [error] The system cannot find the file specified.
[2013-09-01 23:26:36] [error] ServiceStart returned 1
[2013-09-01 23:26:36] [error] The system cannot find the file specified.
[2013-09-01 23:26:36] [info] Run service finished.
[2013-09-01 23:26:36] [info] Commons Daemon procrun finished
谁能告诉我我错了什么吗?我正在按照中的说明进行操作。您需要修改instsrv脚本以使用64位prunsrv.exe。您只需打开脚本并将所有prunsrv命令更改为prunsrv_amd64或prunsrv_ia64。我通过从另一台计算机复制java文件夹并设置环境变量
java_HOME
来设置JDK。所以可能注册表中缺少一些东西
以下是如何解决此问题:
prunsrv\u amd64
替换prunsrv
)instsrv.bat
,方法是更改
:: path to a jvm.dll or "auto"
set jvm_path="auto"
到
\crx quickstart\opt\helpers下运行instsrv.bat CQ5
p/S:这种方式在WindowsXP32位的情况下也有帮助(我已经测试过了) 我想你的JDK的位置已经改变了。您是否更新了start-service.bat中指定的JAVA_HOME环境变量或位置以反映这一点?如果JDK位置发生更改,则需要重新安装该服务。感谢您的评论,但变量设置正确,我可以运行“java”而不会出错。感谢您的回答!然而,这一步是在我遵循的说明中,但没有帮助修复。
:: path to a jvm.dll or "auto"
set jvm_path="%JAVA_HOME%\jre\bin\server\jvm.dll"