What is the command to restart jenkins through command line in linux

0 votes
I am working on jenkins and i have changed the port number to 8085 to access jenkins. when i type the url of jenkins such as localhost:8085 it displays the message unable to connect. So i was thinking to restart jenkins and then try to access this url.
May 28, 2019 in Jenkins by Neel
• 3,020 points
20,709 views

2 answers to this question.

0 votes
If you are using Centos 7 i think sudo service jenkins restart should work.
answered May 29, 2019 by arvind.phulare1911
• 180 points
0 votes

On Ubuntu or Debian, when installed through apt-get/dpkg:

$ sudo /etc/init.d/jenkins restart

Usage: /etc/init.d/jenkins {start|stop|status|restart|force-reload}

answered Aug 1, 2019 by Sirajul
• 59,230 points

Related Questions In Jenkins

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

What is the difference between the Jenkins jobs which are in workspace directory and jobs directory

Hi@Shashi, These folders have different meanings in Jenkins. If ...READ MORE

answered Oct 21, 2020 in Jenkins by MD
• 95,460 points
3,984 views
0 votes
1 answer

What is the use of using declarative pipeline (i.e jenkins file) over scripted pipeline in real time

Hi@Shashi, The declarative pipeline is a relatively new ...READ MORE

answered Oct 28, 2020 in Jenkins by MD
• 95,460 points
1,547 views
0 votes
1 answer

What is the use of audit trail plugin in Jenkins?

Hi@akhtar, Audit Trail Plugin keeps a log of ...READ MORE

answered Dec 7, 2020 in Jenkins by MD
• 95,460 points
1,323 views
+2 votes
5 answers
0 votes
1 answer
+1 vote
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP