Java 服务无法启动:错误 1067:进程意外终止
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18205111/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Service will not start: error 1067: the process terminated unexpectedly
提问by Rani
We have a custom service that we install with our application. The only problem is that after it is installed, it will not start, generating the error above. I have tried to diagnose what the problem is, but can't seem to find any useful information as to why it is quitting. I have tried the same service on a non "R2" 2008 server, and manual it worked fine.
我们有一个与我们的应用程序一起安装的自定义服务。唯一的问题是安装后启动不了,出现上面的错误。我试图诊断问题是什么,但似乎无法找到任何关于它退出的有用信息。我已经在非“R2”2008 服务器上尝试了相同的服务,并且手动运行它工作正常。
service simple java file running using batch file. Deamon service.
使用批处理文件运行的服务简单 java 文件。守护服务。
Has anyone had any experience troubleshooting this type of problem, where there are so few clues?
有没有人有解决此类问题的经验,线索很少?
采纳答案by Janugi Rama
Goto:
去:
Registry-> HKEY_LOCAL??_MACHINE-> System-> Cur??rentControlSet-> Servi??ces.
注册表->HKEY_LOCAL??_MACHINE->System->Cur??rentControlSet->Servi??ces。
Find the concerned service & delete it. Close regedit. Reboot the PC & Re-install the concerned service. Now the error should be gone.
找到相关服务并删除它。关闭注册表。重新启动 PC 并重新安装相关服务。现在错误应该消失了。
回答by Elijah
This is a problem related permission. Make sure that the current user has access to the folder which contains installation files.
这是一个与权限相关的问题。确保当前用户有权访问包含安装文件的文件夹。
回答by AbAz
This error message appears if the Windows service launcher has quit immediately after being started. This problem usually happens because the license key has not been correctly deployed(license.txt file in the license folder). If service is not strtign with correct key, just put incorrect key and try to start. Once started, place the correct key, it will work.
如果 Windows 服务启动器在启动后立即退出,则会出现此错误消息。这个问题通常是因为没有正确部署许可证密钥(许可证文件夹中的 license.txt 文件)。如果服务没有使用正确的密钥,只需输入错误的密钥并尝试启动。启动后,放置正确的密钥,它将起作用。
回答by jayakar jayaraman
I resolved the problem.This is for EAServer Windows Service
我解决了这个问题。这是针对 EAServer Windows 服务的
Resolution is --> Open Regedit in Run prompt
解决方法是 --> 在运行提示中打开 Regedit
Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\EAServer
在 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\EAServer 下
In parameters, give SERVERNAME entry as EAServer.
在参数中,将 SERVERNAME 条目指定为 EAServer。
[It is sometime overwritten with Envirnoment variable : Path value]
[有时会被环境变量覆盖:路径值]
回答by plavozont
I had this error, I looked into a log file C:\...\mysql\data\VM-IIS-Server.err and found this
我有这个错误,我查看了一个日志文件 C:\...\mysql\data\VM-IIS-Server.err 并找到了这个
2016-06-07 17:56:07 160c InnoDB: Error: unable to create temporary file; errno: 2
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' init function returned error.
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-06-07 17:56:07 3392 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-06-07 17:56:07 3392 [ERROR] Aborting
The first line says "unable to create temporary file", it sounds like "insufficient privileges", first I tried to give access to mysql folder for my current user - no effect, then after some wandering around I came up to control panel->Administration->Services->Right Clicked MysqlService->Properties->Log On, switched to "This account", entered my username/password, clicked OK, and it woked!
第一行说“无法创建临时文件”,听起来像是“权限不足”,首先我尝试为当前用户授予对 mysql 文件夹的访问权限 - 无效,然后经过一番徘徊后,我来到了控制面板->管理->服务->右键MysqlService->属性->登录,切换到“这个账户”,输入我的用户名/密码,点击确定,就醒了!
回答by Neil
In my case the error 1067 was caused with a specific version of Tomcat 7.0.96 32-bit in combination with AdoptOpenJDK. Spent two hours on it, un-installing, re-installing and trying different Java settings but Tomcat would not start. See... ASF Bugzilla – Bug 63625seems to point at the issue though they refer to seeing a different error.
在我的情况下,错误 1067 是由特定版本的 Tomcat 7.0.96 32 位与 AdoptOpenJDK 结合引起的。花了两个小时,卸载、重新安装并尝试不同的 Java 设置,但 Tomcat 无法启动。请参阅... ASF Bugzilla – 错误 63625似乎指向了该问题,尽管它们指的是看到不同的错误。
I tried 7.0.99 32-bit and it started straight away with the same AdoptOpenJDK 32-bit binary install.
我尝试了 7.0.99 32 位,它立即开始使用相同的 AdaptOpenJDK 32 位二进制安装。