栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

How to install/run Jenkins on Apache Tomcat Serve

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

How to install/run Jenkins on Apache Tomcat Serve

Total Steps:

    Step1, Download java 8 or 11 as Jenkins supports thatStep2, Download Apache Tomcat ServerStep3, Download Jenkins.war fileStep4, Copy Jenkins.war to "webapps" folder of folder of Apache Tomcat ServerStep5, Start Apache Tomcat ServerStep6, Hit Tomcat URLStep7, Launch Jenkins from Apache URLStep8, Install pluginsStep9, Shutdown running Tomcat server

Step1, Download java 8 or 11 as Jenkins supports that

download : https://www.oracle.com/java/technologies/downloads/#java8set env variable: JAVA_HOMEcheck java if works: java -version

Step2, Download Apache Tomcat Server

download:https://tomcat.apache.org/select proper version and platform(windows or linux or mac)if windows then could select core : "64-bit_windows_zip"


Step3, Download Jenkins.war file

download: https://www.jenkins.io/download/select/choose "Generic Java package(.war)" to download in part "Long-term Support(LTS)"

Step4, Copy Jenkins.war to "webapps" folder of folder of Apache Tomcat Server

find "webapps" folder in Apache Tomcat (ex: apache-tomcat-9.0xxx-windows-x64)copy "Jenkins.war" to "webapps" of Apache Tomcat (ex: apache-tomcat-9.0xxx-windows-x64)

Step5, Start Apache Tomcat Server

startup – To start tomcat server. By default it starts at 8080 portshutdown – To shutdown running tomcat serverchange default port 8080 to any port(ex:8010). if not change, it will conflict and prompt Error.how to change port? solution is: 1) go to conf folder in Apache tomcat folder 2) find server.xml file,content like . 3) only change port ="8080" to "8010"click "startup.bat" to start server, and it will deploy Jenkins.war file as well. Note: as first setup Jenkins, an initial passord like "daf9aaxxxxxxxxxxxxx" will be provided to unlock jenkins in console(also include the password path stored), keep the password in mind. A new folder "jenkins" is created in "webapps"

Step6, Hit Tomcat URL - (localhost:8080)

Open a browser and input localhost:8080

Step7, Launch Jenkins from Apache URL

Unlock Jenkins page will be prompted. find initial password "daf9aaxxxxxxxxxxxxx" according to page prompted path OR get the information from Step5. Then Input it.

Step8, Install plugins

It will ask you to Customize jenkins by installing a good number of plugins. You can manually choose or install all suggested plugins. I will recommend to go for “Install suggested plugins“Plugin installation will take time. Let it be completed. Now it will ask you to create first admin user. Set Username and passowd then keep it in mind. then create and click on “Save and Continue” button.Go through steps, then "Jenkins is ready!", click "Start using Jenkins", then "Welcome to Jenkins!" will be showed. 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/757538.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号