Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable installed jenkins as windows service and run the same jenkins in cmd?

I want to init the Jenkins not by service, but by my self(As windows user) in cmd!

like image 885
Hemã Vidal Avatar asked Jun 09 '16 22:06

Hemã Vidal


1 Answers

  1. Go to your services and stop Jenkins service. To see all your services run services.msc, from there find Jenkins service and disable\stop it.

  2. Open up "cmd" as administrator.

  3. In cmd navigate to where you installed Jenkins, by default it should be in C:\Program Files(x86)\Jenkins.

  4. Run the command:

    java -jar jenkins.war
    

This should start Jenkins for you in cmd now use your address and port which you already defined for installed Jenkins.

In case you want to have fresh start. Download latest jenkins.war file or copy your .war file to another directory and run the java -jar command.

If you want to go back to your installed Jenkins close the cmd which is running Jenkins and start the service back up.

like image 148
zalimgandhera Avatar answered Sep 17 '22 22:09

zalimgandhera