{"id":5161,"date":"2023-02-14T14:33:39","date_gmt":"2023-02-14T14:33:39","guid":{"rendered":"https:\/\/arzhost.com\/blogs\/?p=5161"},"modified":"2025-09-17T17:35:13","modified_gmt":"2025-09-17T12:35:13","slug":"restart-jenkins-manually","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/restart-jenkins-manually\/","title":{"rendered":"How to Restart Jenkins Manually: A Step-by-Step Guide"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction: Jenkins and How Does it Work<\/h2>\n\n\n\n<p>Users could run into a circumstance where they need to restart Jenkins while using it manually. How to Restart Jenkins Manually? This could happen for a variety of reasons, such as adding plugins or debugging problems. Fortunately, Jenkins provides several ways to carry out a manual restart.<\/p>\n\n\n\n<p>In this article from our <a href=\"https:\/\/arzhost.com\/blogs\/\"><strong>blog<\/strong><\/a>, we&#8217;ll review the various techniques for manually restarting Jenkins.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A fully functional installation of Jenkins (learn how to install Jenkins on Ubuntu 18.04, Debian 10, CentOS 8, or Windows 10).<\/li>\n\n\n\n<li>Having the use of a web browser<\/li>\n\n\n\n<li>Access to the command prompt or terminal window (Linux and macOS) (Windows).<\/li>\n\n\n\n<li>The ability to access a user account with sudo\/administrator rights.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Restart Jenkins via URL<\/strong><\/h2>\n\n\n\n<p>Enter the correct URL to restart Jenkins if you are using the Jenkins dashboard in a web browser. Jenkins will restart if you use the default restart URL without waiting for any builds to finish:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>restart at [Jenkins URL]<\/code><\/li>\n<\/ul>\n\n\n\n<p>Use the safe restart option to finish all open jobs before the restart. Once the restart is complete, new jobs will start to queue up and run:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/safe Restart Jenkins URL<\/code><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-a04f614c wp-block-button uag-blocks-common-selector\" style=\"--z-index-desktop:479;;--z-index-tablet:undefined;;--z-index-mobile:undefined;\"><div class=\"uagb-cta__wrap\"><h2 class=\"uagb-cta__title\"><a href=\"https:\/\/arzhost.com\/rdps\/\" data-type=\"link\" data-id=\"https:\/\/arzhost.com\/rdps\/\">Simplify Remote Work: Sign Up for RDP Hosting and Save Big!<\/a><\/h2><p class=\"uagb-cta__desc\">Remote Access Made Easy with <a href=\"https:\/\/arzhost.com\/\" data-type=\"link\" data-id=\"https:\/\/arzhost.com\/\">ARZ Host<\/a>\u2014Get 30% Off Your First RDP Plan<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/arzhost.com\/rdps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_self\" rel=\"noopener noreferrer\">Read More<\/a><\/div><\/div>\n\n\n\n<p><u>How to Restart Jenkins Manually? Both choices necessitate hitting the Yes button to confirm the restart:<\/u><\/p>\n\n\n\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/HY0H4mXBV3o\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<p>The system&#8217;s hostname and the port Jenkins is executing on are both included in the Jenkins URL (the default port is 8080). When logging into your system&#8217;s Jenkins dashboard, use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>http:\/\/localhost:8080\/restart<\/code><\/li>\n\n\n\n<li><code>http:\/\/localhost:8080\/saferestart<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Use: to sign in if you are using a different system.<\/u><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>http:\/\/[your system's hostname]:8080\/restart<\/code><\/li>\n\n\n\n<li><code>http:\/\/[your system's hostname]:8080\/safe Restart<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Restart Jenkins via the Safe Restart Plugin<\/strong><\/h2>\n\n\n\n<p>You may do a safe restart from the Jenkins dashboard thanks to the Safe Restart plugin for Jenkins.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To begin adding the plugin, click the Manage Jenkins option on the dashboard&#8217;s left side:<\/li>\n\n\n\n<li>Select Manage Plugins from the System Configuration section:<\/li>\n\n\n\n<li>Find &#8220;safe restart&#8221; under the Available tab and select the Safe Restart plugin by checking the box next to its name.<\/li>\n\n\n\n<li>To add the plugin, click the Install without restart option as follows:<\/li>\n\n\n\n<li>Return to your dashboard when the plugin has been installed. On the left side, a new link labeled &#8220;Restart Safely&#8221; has appeared:<\/li>\n\n\n\n<li>Clicking the link starts a secure Jenkins restart. Clicking the Yes option will require you to confirm the restart.<\/li>\n<\/ol>\n\n\n\n<p>Want to run a bash Command? See our detailed article on <a href=\"https:\/\/arzhost.com\/blogs\/how-to-run-a-bash-script-in-terminal\/\"><strong>Running a Bash Script in Terminal<\/strong><\/a> to help you automate your tasks, streamline processes, and manage system operations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>CLI restart Jenkins<\/strong><\/h2>\n\n\n\n<p>A Java file called Jenkins CLI (Command Line Interface) functions as an addition to the local terminal shell. From a terminal window or command prompt, you may control Jenkins using Java commands.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"628\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/cli-restart-jenkins.jpg\" alt=\"cli restart jenkins\" class=\"wp-image-13273\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/cli-restart-jenkins.jpg 1200w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/cli-restart-jenkins-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/cli-restart-jenkins-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/cli-restart-jenkins-768x402.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">cli restart jenkins<\/figcaption><\/figure>\n<\/div>\n\n\n<p>1: Download the Jenkins CLI.jar file first<\/p>\n\n\n\n<p>2: Click the Manage Jenkins link on the left-hand side of the Jenkins dashboard once it has loaded in your web browser.<\/p>\n\n\n\n<p>3: In the Tools and Actions area, scroll down and select the Jenkins CLI button.<\/p>\n\n\n\n<p>4: Download Jenkins-cli.jar using the provided link.<\/p>\n\n\n\n<p>5: To restart Jenkins after the download is finished, open a terminal window or command prompt and enter the following commands:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>restarting Java using the command java -jar [path to the jenkins-cli.jar file]<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>For instance, using a Windows computer with the Jenkins-cli.jar file in the Downloads folder:<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Restart with the command: java -jar C:UsersakovaDownloadsjenkins-cli.jar -s <a href=\"http:\/\/localhost:8080\">http:\/\/localhost:8080<\/a><\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Restart Jenkins on Windows, Linux, and Mac?<\/strong><\/h2>\n\n\n\n<p><span style=\"color: #000000;\"><strong>How to Restart Jenkins Manually?<\/strong><\/span> Jenkins starts up as a background service after installation. It can therefore be restarted using the same instructions as other services.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Restart the Linux Jenkins Service.<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Start the Jenkins service restart on a Linux computer by typing:<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>systemctl restart Jenkins with sudo<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Another approach is to apply:<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>restart Jenkins with sudo \/etc\/init. d<\/code><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-aaa58f13 wp-block-button uag-blocks-common-selector\" style=\"--z-index-desktop:479;;--z-index-tablet:undefined;;--z-index-mobile:undefined;\"><div class=\"uagb-cta__wrap\"><h2 class=\"uagb-cta__title\"><a href=\"https:\/\/arzhost.com\/vps\/\" data-type=\"link\" data-id=\"https:\/\/arzhost.com\/vps\/\">Boost Your Site\u2019s Performance with VPS Hosting\u2014Grab the Discounts Now!<\/a><\/h2><p class=\"uagb-cta__desc\">Unlock the Potential of VPS Hosting\u2014<strong>Exclusive Offers<\/strong> for New Customers!<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/arzhost.com\/vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_self\" rel=\"noopener noreferrer\">Read More<\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Restart the Jenkins Service in Windows<\/strong><\/h2>\n\n\n\n<p><u>How to Restart Jenkins Manually? Use the net command to stop and then restart the Jenkins service on the Windows command prompt:<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>jenkins, net stop<\/code><\/li>\n\n\n\n<li><code>start net jenkins<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Restarting Jenkins.exe by going to the installation folder for Jenkins is another option. For illustration:<\/u><\/p>\n\n\n\n<p>Jenkins, program files at C:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>start jenkins.exe<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>Related Article: <a href=\"https:\/\/arzhost.com\/blogs\/install-node-js-and-npm-on-windows\/\">Install node.js and NPM on Windows<\/a><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Restart MacOS&#8217;s Jenkins service.<\/strong><\/h2>\n\n\n\n<p><u>How to Restart Jenkins Manually? Use the launchctl command to stop and start the Jenkins service twice on MacOS to restart it:<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/Library\/LaunchDaemons\/org.jenkins-ci.plist sudo launchctl unload<\/code><\/li>\n\n\n\n<li><code>\/Library\/LaunchDaemons\/org.jenkins-ci.plist sudo launchctl load<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>After reading this guide, you have to be able How to Restart Jenkins Manually? using one of the techniques described above.<\/p>\n\n\n\n<p><strong>Read More:<\/strong><\/p>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/how-to-fix-403-forbidden-error-wordpress\/\">How To Fix 403 Forbidden Error WordPress<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/how-to-get-the-most-out-of-claude-ai\/\">How To Get The Most Out Of Claude Ai<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/bad-gateway-error-502-the-ultimate-guide-to-quick-fixes\/\">Bad Gateway Error (502): The Ultimate Guide to Quick Fixes<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/a-deep-dive-into-todays-best-linux-distros\/\">A Deep Dive Into Today\u2019s Best Linux Distros<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/domain-investor-terms-powerful-strategy\/\">Domain Investor Terms: Expert Insight on Powerful Strategy<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Introduction: Jenkins and How Does it Work Users could run into a circumstance where they need to restart Jenkins while using it manually. How to Restart Jenkins Manually? This could happen for a variety of reasons, such as adding plugins or debugging problems. Fortunately, Jenkins provides several ways to carry out a manual restart. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9587,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[194,198,197,195,196],"class_list":["post-5161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-jenkins","tag-linux","tag-macos","tag-restart","tag-windows"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/5161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=5161"}],"version-history":[{"count":6,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/5161\/revisions"}],"predecessor-version":[{"id":13274,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/5161\/revisions\/13274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/9587"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=5161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=5161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=5161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}