Restart Jenkins (2024)
The Jenkins service may need to be restarted to fix issues associated with Jenkins.
The various ways to restart Jenkins are as follows:
- Using Manage Jenkins
- Restart Jenkins Using CLI
- Restart Jenkins in Window
- Restart Jenkins in Linux
- Restart Jenkins in Mac for M1 and Intel using Homebrew
Using Manage Jenkins
- Navigate to the Jenkins dashboard and click on "Manage Jenkins" on the left-hand side menu.
- Click on "Reload Configuration from Disk" to reload the configuration changes.
- Finally, click on "Safe Restart" to restart Jenkins.
Checkout our related posts :
Restart Jenkins Using CLI
- Download the
Jenkins-cli.jar
from Jenkins dashboard -> Manage Jenkins -> Tools and Actions -> click on Jenkins CLI button. - Open a terminal or command prompt.
- Run the following command to restart Jenkins:
java -jar <path to jenkins-cli.jar> -s <Jenkins URL> restart
Restart Jenkins in Window
- Open the Command Prompt with administrator permissions on your Windows PC.
- Run below command to restart Jenkins on Windows after that.
net stop Jenkins
net start Jenkins
Restart Jenkins in Linux
To restart Jenkins, enter the
systemctl
command into Linux terminal:
sudo systemctl restart Jenkins
Restart Jenkins in Mac for M1 and Intel using Homebrew
User can use the standard brew
commands on Mac for M1 and Intel in order to
stop and start the Jenkins services.
Start Jenkins service : brew services start jenkins-lts
Stop Jenkins service : brew services stop jenkins-lts
Restart Jenkins service : brew services restart jenkins-lts