Uninstall Apache Service Windows 7

83 Comments

Setup Jenkins and Windows. Overview. So, my team was recently assigned to help another team with their product. This product is built on the Microsoft world of C and Silverlight. With C being my home language and the platform of choice for a lot of people out there because it is so extremely powerful I wanted to see how hard it would be to use some of the tools weve been using on the other projects. This meant installing and running Jenkins on windows to do a pull of the source code hosted in Team Foundation Server and running a build on the solution as well as some unit tests. So in light of this background Ill be explaining how to setup Jenkins. Ill be going into installing Jenkins as a Master Build Server as well as how to set it up to run as a Slave to my Ubuntu Jenkins Build Server. Seeing that Ive been working on more open source type of stuff and enjoying it so much I decided that I would like to use the toolsets that weve been using on those projects to help us maintain the same visibility on the Microsoft side of the world. So, what Ill be going through are as follows Pre requisites. Downloading Jenkins. Installing Jenkins as a Windows Service. Configuring Jenkins as a Master Build Server. Configuring Jenkins as a Slave. Creating a Job on the Slave. Conclusion. If you want to see how I installed the Master Build Server on my Ubuntu environment you can have a look at my article called Setup Apache and Jenkins. In this article Ill be creating a Jenkins Slave to that Jenkins environment. Pre requisites. To run Jenkins on a Windows machine youll need to install the Java stuff. To do this you can follow the instructions as described on the Java site. Downloading Jenkins. To download Jenkins you should go to their home page and grab their Latest and greatest war file. Speed_Up_05.jpeg' alt='Uninstall Apache Service Windows 7' title='Uninstall Apache Service Windows 7' />Hmmm. I hit this bump too. Strange thing is I was demonstrating this uninstallation method for my boss. I used my domain administrator account to uninstall Bing Bar. Ive got Apache installed on Windows. The folder name indicates that its Apache 2. I want to see the full version number. How can I do thatUninstall Apache Service Windows 7Installing Jenkins as a Windows Service. In this section Ill be explain how you could install Jenkins as a Windows Service. Of course you would be able to run Jenkins from the Command Line by opening a Command Prompt and browsing to the folder where you have your Jenkins. I dont like this because its dirty and because Ill probably want to install it on a Build Server somewhere and for that reason you wont have someone logged in all the time. To run it from the Command Line you can run the following command java jar jenkins. This will extract the Jenkins files to a folder. User Accounts folder. Usually something like C UsersUser. Name. jenkins.   I dont like this either so I would suggest setting up an Environment Variable called JENKINSHOME to show to the place where you want Jenkins to run. In my case I want it to run under E SoftwareJenkins. Environment Variable will point to this folder and when I run the above command again Jenkins will look for this Environment Variable and automatically know to run there. As mentioned above I dont like running Jenkins from the Command Line and would prefer to have it run as a Windows Service that starts automatically when I start my Windows environment. To do this is quite simple. You should run the command above and then open up a browser and browse to your new running Jenkinss home page at http localhost 8. Once there you should see a link for Manage Jenkins that looks like When youve selected this link it should come up with a page as follows In this list you should see a link called Install as Windows Service. When you click this link you should go to a page that looks like If youre happy with the installation folder you should select Install, which should then take you to a page as follows This means that Jenkins is now installed as a Windows Service and you should see it under the Windows Service Manage as follows If you go back to your Jenkins site you should select the Yes button which will then stop your Jenkins running the Command Line and start the service for you. This completes the installation of Jenkins and you should be able to do everything youve come to enjoy playing with Jenkins on the Ubuntu installation. Configuring Jenkins as a Master Build Server. Uninstall Apache Service Windows 7' title='Uninstall Apache Service Windows 7' />If youve followed the steps in the previous section or in my article called Setup Apache and Jenkins you should have a Master up and running. Ill cover how to set up a slave in my next section. Configuring Jenkins as a Slave. In the case where you want to setup a Jenkins slave running on Windows, youll have to go through a few steps. These are not very hard, but it is quite hard trying to figure out how to do it. It was for me anyway, which is why Im creating this articleTo start, open up your Master Jenkins home page in a browser. Once its loaded you should go to the Manage Jenkins page by clicking on the Manage Jenkins link as follows Once you get to the Manage page you should see something like In the list you should see the link called Manage Nodes as follows If you click on it you should be presented by a page that looks like You should now select the New Node link. This will take you to a page that looks like On this page you should enter name that you want to call you Slave. In my case I called it My. Slave and once thats done you should select the Dumb Slave option and click on the OK button which should take you to a page that looks like Here you should select the options so your page looks like mine above. Once done click on the Save button, which should take you back to the Manage Node page. On this page you should now see your new Slave listed as below When you get to this page you should select your slave, which should take you to a page that looks like This is where it starts getting a little bit more interesting  If you click on the Launch button it should ask you to save a file to your local machine. This file is called slave agent. Slave.   Once youve downloaded this file you should open a Command Prompt and browse to the folder where you downloaded the file to and run the command as follows javaws http 1. My. Slaveslave agent. This should then bring up a window as follows On this window you should go to File Install as Windows Service. This should bring up a message as follows In this case you should select the OK button, which will install the slave as a Windows Service. You should now get a screen as follows Click on the OK button so the service can be started. If you open up the Windows Services Manager you should now see a new Service there as follows At this stage you should go back to your Jenkins site and refresh the page, which should then look like And thats it youre done and now have a new Slave connected to your Master Build Server. Eterna Matic Serial Numbers more. Creating a Job on the Slave. This works the same as for a normal Build Server with one little annoyance that you should be aware of. When you go into the New Job page you should see a Check Box as follows If you want your Job to only run on this Slave then you should enter your slaves name in this box. Conclusion. I hope this helps someone out there and makes it a bit easier for you to set up a Jenkins machine or slave on a Windows machine. Because Jenkins is written in Java you can run it on most environments and because of the way it works you can do Continuous Integration against any code base. Lets look at how to solve Port 80 problems when running Apache on Windows.