官术网_书友最值得收藏!

Installing Jenkins on Windows

If you chose not to use a VM, you can easily just install Jenkins on Windows. Head over to https://jenkins.io and find the downloads page. At the time of writing this, there is a big red button in the center of the page that says Download Jenkins. Even if it is not there, I am pretty sure you will find it. I downloaded Jenkins 2.32.1 for Windows; it is a zip file containing an msi file. Simply run the msi file and the installation will start. Upon completion, Jenkins will be started on your browser under localhost:8080:

The directions on the page are pretty clear. Open C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword, copy the password, paste it into the Administrator password field, and hit Continue.

Jenkins installs to port 8080 by default, just like a lot of other applications. If Jenkins does not start or localhost:8080 does not show Jenkins, chances are port 8080 is in use by another application. To change the default port used by Jenkins, go to the installation folder ( C:\Program Files (x86)\Jenkins) and look for jenkins.xml. Open the file as administrator in Notepad and look for --httpPort=8080. Change 8080 to something else, such as  8081, and save it. Head over to your services (under Administrative Tools under Control Panel) and look for Jenkins. If it is not running, start it; otherwise restart it. Open up your browser and browse to localhost:8081 (or whatever port you chose) and you should see Jenkins.
You can actually download a Jenkins war file (Web application ARchive) and run it locally. You will get all the Jenkins goodness without having to install it. Your settings and builds are saved, so you can manually start it and still have all your stuff persisted. By doing this, you can install Jenkins from Jenkins (and you will not lose any data). You will need to install Java and add it to your Windows path. You can then start the war file from the command line using java -jar somewhere/jenkins.war --httpPort=8081 (httpPort, which is optional; the default is 8080).
主站蜘蛛池模板: 伊春市| 望江县| 大竹县| 来凤县| 西乌| 如皋市| 罗山县| 株洲县| 揭西县| 崇阳县| 垦利县| 扎鲁特旗| 德安县| 凤阳县| 天祝| 洱源县| 宣汉县| 苏尼特右旗| 吉水县| 阿克陶县| 岚皋县| 南雄市| 甘南县| 白河县| 夏邑县| 静宁县| 秦安县| 武陟县| 桓仁| 红桥区| 东莞市| 托克逊县| 屯昌县| 托里县| 曲沃县| 安丘市| 聂荣县| 屏东市| 密山市| 克什克腾旗| 丘北县|