问题描述
我刚刚开始与 Jenkins 合作,但遇到了一个问题.安装了几个插件后,它说需要重新启动并进入关闭"模式,但从未重新启动.
I've just started working with Jenkins and have run into a problem. After installing several plugins it said it needs to be restarted and went into a "shutting down" mode, but never restarts.
如何手动重启?
推荐答案
要手动重启 Jenkins,您可以使用以下任一命令(通过在浏览器中输入其 URL):
To restart Jenkins manually, you can use either of the following commands (by entering their URL in a browser):
(jenkins_url)/safeRestart
- 允许所有正在运行的作业完成.重新启动完成后,新作业将保留在队列中以运行.
(jenkins_url)/safeRestart
- Allows all running jobs to complete. New jobs will remain in the queue to run after the restart is complete.
(jenkins_url)/restart
- 强制重启而不等待构建完成.
(jenkins_url)/restart
- Forces a restart without waiting for builds to complete.
这篇关于如何手动重启 Jenkins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!