Prasetyo Budi
Prasetyo Budi

Reputation: 96

how to stop and resume jenkins service

I got confused, how to stop/start the Jenkins after I have installed jenkins.war on my terminal with this script

java -jar jenkins.war -httpPort=8080

cause if run above code again, could be error cause port already in use. I can uninstall it, but it's like wasting time if I need Jenkins I must uninstall it and then install again. need someone that knows how to stop/start command without uninstall the installed jenkins

thanks

Upvotes: 0

Views: 1074

Answers (2)

Prasetyo Budi
Prasetyo Budi

Reputation: 96

i would explain the step, i install my jenkins as admin

  1. http://localhost:8080/exit [login to jenkins first]
  2. close your terminal
  3. open your terminal and go to your directory .war file
  4. run java -jar jenkins.war -httpPort=8080
  5. http://localhost:8080/restart

Upvotes: 0

Gaurang Shah
Gaurang Shah

Reputation: 12910

if you have administrative right you should be able to access the following URL. Just confirm the restart.

http://<Jenkins_IP>/restart

Upvotes: 0

Related Questions