Jenkins无法启动-验证您是否具有启动系统服务的足够特权 [英] Jenkins failed to start - Verify that you have sufficient privileges to start system services
问题描述
通过安装程序在Windows 10上安装Jenkins(LTS)时,选择JDK文件夹后-尝试启动服务时弹出错误.
When installing Jenkins (LTS) on windows 10 via the installer, after choosing the JDK folder - an error pops when the service is trying to start.
错误显示为:"Jenkins无法启动-验证您是否具有足够的特权来启动系统服务"
The error reads: "Jenkins failed to start - Verify that you have sufficient privileges to start system services"
让我明确说明我确实具有足够的特权,但是某些功能不起作用.
Let me make it clear that I DO have sufficient privileges, yet something is not working.
我尝试了许多不同的建议来解决此问题,并阅读了许多帖子,但没有帮助. 另外,这些帖子中有很多都越来越老了,我不确定这些天它们的相关性如何.
I tried many different suggestions to fix this issue, and read many posts but none helped. Also, a lot of these posts are getting old and I'm not sure how relevant they are these days.
我找到了解决此问题的方法,并将其发布为建议的答案.这也可能适用于其他安装程序,但仅在Jenkins安装程序中进行了测试.
I found a way to fix this issue, and I'll post it as a suggested answer. This could also work for other installers, but it was only tested with the Jenkins installer.
但是,如果有人知道解决此问题的更好方法-请与我们分享.
However, if anyone knows a better way to fix this - please share it with us.
希望这种方法可以帮助很多人!
Hope this method will help many people!
推荐答案
这是我解决问题的方式.
This is how I fixed the problem.
请在执行之前先阅读所有内容,然后按顺序执行以下步骤:
Please read it all before executing and follow the steps in order:
- 删除您当前拥有的所有Jenkins安装剩余物
- 开始安装过程,在询问时输入您的凭据,然后继续执行屏幕上的说明(包括选择JDK文件夹),直到出现错误为止.
- 出现错误时,***不要做任何事情! ***保留它在我的问题中显示的样子
- 现在(并且仅现在),打开服务"
- 搜索詹金斯"服务.应将其设置为自动",但在使用时可能被禁用".
- 打开詹金斯"属性,然后转到登录"标签
- 确保您选择此帐户"单选按钮,删除帐户名和密码字段,然后再次输入
- 点击应用"
- 返回安装程序,然后单击重试"
- Delete any Jenkins installation leftovers you currently have
- Start the installation process, input your credentials when asked, and continue with the on-screen instructions (including choosing the JDK folder) up until the point where the error is raised.
- When the error is raised, *** DO NOT DO ANYTHING! *** leave it as it is shown in my question
- Now (and only now), open "Services"
- Search for the "Jenkins" service. It should be set to "Automatic", but it might be "Disabled"
- Open the "Jenkins" properties, and go to the "Log On" tab
- Make sure you choose the "This account" radio button, delete the account name and password fields, and enter them AGAIN
- Click "Apply"
- Go back to the installer and click "Retry"
如果一切都按计划进行-安装现在将继续进行,不会出现问题.
If everything is according to plan - The installation will now continue without a problem.
此方法已在本地和VM/AWS计算机上进行了测试,并且有效!
This method was tested on a local and VM / AWS computer and worked!
如果仍然遇到问题,请尝试将步骤5中的启动更改为自动".并确保您仅打开服务"在步骤4.打开时不会更新.
If you still encounter a problem, try changing the startup in step 5 to "Automatic" and make sure you only open "Services" on step 4. "Services" will not update while it is open.
如果有帮助,请发表评论或投票,以便其他人知道.
If this helped, please leave a comment or vote, so others will know.
希望这对您也有帮助!
这篇关于Jenkins无法启动-验证您是否具有启动系统服务的足够特权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!