如何在Windows中重新启动Jenkins

如何在Windows中重新启动Jenkins

本文介绍了如何在Windows中重新启动Jenkins的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法手动重新启动Jenkins.已经尝试了以下所有方法:

Not able to restart Jenkins manually. Already tried all below ways:

  1. http://localhost:8080/safeRestart
    错误消息:Jenkins无法按照当前配置重新启动自己.

  1. http://localhost:8080/safeRestart
    Error message: Jenkins cannot restart itself as currently configured.

管理詹金斯→重新启动安全插件.
错误消息:Jenkins无法按照当前配置重新启动自己.

Manage Jenkins → Restart Safely Plugin.
Error message: Jenkins cannot restart itself as currently configured.

services.msc中找不到任何Jenkins服务.

Not able to find any Jenkins Service in services.msc.

以CMD模式导航到jenkins-cli目录

Navigate to jenkins-cli directory in CMD mode

java -jar jenkins-cli.jar -s http://[jenkins-server]/ restart

有关错误消息,请参见以下屏幕截图:

See below screenshot for error message:

推荐答案

使用命令行停止和启动

net stop jenkins
net start jenkins

这篇关于如何在Windows中重新启动Jenkins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 17:24