jenkins搭建与配置

Jenkins服务搭建及配置 ①概要说明 设备: Windows、Liunx 系统软件: Jenkins安装包 说明: Jenkins服务下载安装及配置,相对应的插件下载方法。 ②下载Jenkins Jenkins下载网站:https://jenkins.io/download/ 根据自己需要安装Jenkins的环境来选择下载的文件,我是在Windows上安装选择Windows 第一步,在官网上下载最新版的64位Wind... 阅读详情

1安装java环境

2下载jenkins.war

3java -jar jenkins.war    (也可放在tomcat里面运行)

4浏览器打开 http://localhost:8080

5填入密码,确定,发现一直卡locading...界面。

vi /root/.Jenkins/updates/default.json  或者c:/用户/Adminstrator/.Jenkins/updates/default.json (看windows/linux)

www.google.com 改为www.baidu.com

只要用来判断本地有没有网络以供后面下载服务,这里由于谷歌被墙了,切到百度

6重启jenkins服务:java -jar jenkins.war,重新打开页面输入密码

7安装推荐的插件

8安装完成后,打开页面系统管理/插件管理

搜索Deploy to container Plugin,勾选安装(主要用来发布war包到tomcat)

9系统管理/全局工具配置 ,可以安装git maven环境,如果有了就不用安装了

10 启动tomcat作为容器

tomcat配置事项

1>server.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->
 
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
    -->
    <Connector port="9090" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
         This connector uses the NIO implementation. The default
         SSLImplementation will depend on the presence of the APR/native
         library and the useOpenSSL attribute of the
         AprLifecycleListener.
         Either JSSE or OpenSSL style configuration may be used regardless of
         the SSLImplementation selected. JSSE style configuration is used below.
    -->
    <!--
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true">
        <SSLHostConfig>
            <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>
    -->
    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
         This connector uses the APR/native implementation which always uses
         OpenSSL for TLS.
         Either JSSE or OpenSSL style configuration may be used. OpenSSL style
         configuration is used below.
    -->
    <!--
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
               maxThreads="150" SSLEnabled="true" >
        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
        <SSLHostConfig>
            <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
                         certificateFile="conf/localhost-rsa-cert.pem"
                         certificateChainFile="conf/localhost-rsa-chain.pem"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>
    -->
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
 
    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->
    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">
      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->
      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->
        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
                  
                  
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
      </Host>
    </Engine>
  </Service>
</Server>
 

注意context不用配置

2>tomcat-users.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary. It is
  strongly recommended that you do NOT use one of the users in the commented out
  section below since they are intended for use with the examples web
  application.
-->
<!--
  NOTE:  The sample user and role entries below are intended for use with the
  examples web application. They are wrapped in a comment and thus are ignored
  when reading this file. If you wish to configure these users for use with the
  examples web application, do not forget to remove the <!.. ..> that surrounds
  them. You will also need to set the passwords to something appropriate.
-->
                             <role rolename="tomcat"/>
                            
<!-->
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="" roles="tomcat"/>
  <user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
  <user username="role1" password="<must-be-changed>" roles="role1"/>-->
  <role rolename="manager-gui"/>  
  <role rolename="manager-script"/>  
  <role rolename="manager-jmx"/>  
  <role rolename="manager-status"/>
  <role rolename="admin"/>
  <role rolename="manager"/>
  
  <user username="admin" password="kaicom2017" roles="tomcat,admin,manager,manager-script,manager-jmx,manager-status"/>
</tomcat-users>
 

 

添加一些权限给用户,供后面打包发布

3>tomcat下work目录删除重新启动

 

11新建项目,选择自由风格的项目

 

 

 

(2)搭建jenkins和配置jenkins使用gitab更新代码 搭建jenkins和配置jenkins使用gitlab更新代码 阅读详情

相关推荐

配置表测试框架搭建-⑧Jenkins搭建集成配置表检查

文章目录前言安装安装Java-JDK8安装Jenkins安装Allure commandline实践一、初始化Jenkins二、安装Jenkins-allure插件三、新建任务运行结语 前言 Jenkins的搭建网上有很多教程,官网也有,点击跳转,结合自己情况搭建,接下来我是用云服务器进行搭建,如果公司有提供可以直接上手,或者上阿里云、腾讯云买个服务器。 环境: OS:Linux VM-20-8-ubuntu 5.4.0-42-generic 安装 安装Java-JDK8 命令的jdk版本和路径可以自行调整

游戏测试-AJiian的博客 9574

Jenkins文件夹下没有default.json文件

Jenkins文件夹下没有default.json文件

weixin_52022790的博客 3549

default.json

jenkins插件想通过国内源下载除了需要在jenkins系统设置中配置国内源还需要修改其他配置,在后台服务器中找到jenkins的安装路径下的update配置文件路径/var/lib/jenkins/updates找到default.json,替换这个文件即可。改了贼快你不试试?

docker jenkins安装

安装环境 CentOS 7.6 Docker 18.09.6 拉取镜像 docker pull jenkins/jenkins:2.222.3-centos 创建本地数据卷 我这里映射本地数据卷的路径为/data/jenkins_home/,你想放别的地方可以自行修改 mkdir -p /data/jenkins 需要修改下目录权限,因为当映射本地数据卷时,/data/jenkins_home/目录的拥有者为root用户,而容器中jenkins用户的 uid 为 1000。 chown -R 1000:

muchen_L的博客 399

Avellaneda & Stoikov’s market-making strategy AS模型的通俗理解篇(一)

δa, δb = bid/ask spread, symmetrical → δa=δb 也就是一段时间内,这个midprice 上蹿下跳的幅度计算,其实做市也就是一种网格,或者说类似布林带,我们经过计算在底部放买单,在高点放一个卖单,如果上下都成交了,那么仓位不变,你把利差赚了。一般来说在震荡行情中,很适合做市,特别是波动率不高情况下,我们通过AS的经典论文得到2个最关键公式,下面来解读一下这个公式的含义,如何在hummingbot 策略中如何设置这些参数。如果单边上涨,你就无货可卖,俗称卖飞了。

weixin_42480337的博客 1万+

Centos7.9上安装glibc2.28遇到/usr/bin/ld: cannot find -lnss_test2问题

Centos7.9安装glic2.28遇到-lnss_test2问题及解决方案。

freflying1119的博客 2898

docker安装Jenkins

目录 0.前言 1. 查询jenkins镜像 2. 安装配置jenkins 2.1 拉取jenkins镜像 2.2 创建挂载目录 2.3 启动jenkins 2.4 修改配置文件 2.5 重启容器 3 打开http://localhost:8081/ 3.1 获取初始密码并登陆 3.2 用新密码重新登陆 0.前言 安装docker mac下安装docker 1. 查询jenkins镜像 docker search jenkins 2. 安装配置jenkins .

Adele的专栏 1228

Cursor Pro版保姆级开通教程:绕过7天试用,支付宝一步搞定(附地区报错解决方案)

本文详细介绍了Cursor Pro版的订阅流程,包括支付宝支付步骤和解决区域报错的实用方案。针对开发者常见的网络问题和云服务器配置需求,提供了从本地环境调整到云端部署的完整指南,帮助用户高效解锁Pro版的代码补全、私有代码库等核心功能。

weixin_28710999的博客 2105

Jenkins快速入门部署+实践

直接从http://mirrors.jenkins-ci.org/war/latest/jenkins.war 下载最新的war包,然后解压到某个固定目录就算安装完成了

软件测试技术交流分享 797

PADS Layout中快速导入自定义元器件封装的实用技巧

本文详细介绍了在PADS Layout中高效导入自定义元器件封装的实用技巧。针对封装“找不到”、“对不上”、“导不进”三大痛点,系统梳理了从封装文件来源识别、库规划管理,到三种核心导入场景(从库文件添加、从其他设计借用、处理第三方格式)的完整操作流程,并提供了导入后的关键验证清单与常见问题排查方法,旨在帮助硬件工程师快速掌握这一提升设计效率的关键技能。

weixin_29302047的博客 375

Android 系统低内存lowmemorykiller关于阈值修改 minfreeAbsKbytes优化

在系统rom定制化开发中,在对于运行内存ram 1G和2G的设备中,对于内存使用高峰期时,minfreeAbsKbytes优化很关键 调整合理的minfree,让内存合理的使用很关键,接下来分析相关功能的实现

安卓兼职framework和app工程师的博客 524

自动化部署Jenkins

安装 下载地址 安装过程中会测试8080端口号是否被占用,提示java8在未来不在支持,建议选择java11 进入网站localhost:8080 输入管理员密码(在系统提示的位置):cc1518c3ac944782b903204c9d37ca2a 跳过插件安装 创建用户admin 版本2.33.23 修改工作空间 在F盘新建文件夹JenkinsWorkspace 重新登录localhost:8080输入密码:298550ec7420427ca4675e5aa531b184 然后和上

shaoshaossm的博客 566

【3D Slicer】的小白入门使用指南一

3D Slicer 是一个免费的开源软件平台,用于医学、生物医学和其他 3D 图像的可视化、处理、分割、配准和分析。Slicer 的功能包括:读/写。

图挖掘领域,新晋砖家 ☞ 未来可期,欢迎和静静一起学习交流吖 5555

Linux搭建Jenkins及配置

背景 自己搭建Jenkins时,在网上看到各种各样的文档,实践操作过程中发现其实步骤很简单,具体不懂的地方可在网上搜索。本文安装Jenkins的方法,没有安装tomcat,也可以通过tomcat安装Jenkins,具体自行在网上搜索。 搭建步骤 下载安装 sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/re...

爱生活,爱学习 9933

PCL 加权局部最优投影(WLOP)简化算法

WLOP算法是一种点云重采样方法,通过迭代优化实现点云均匀化和特征保留。算法包含数据项(加权平均位置保持几何特征)和正则化项(排斥邻近点实现均匀分布)两部分。代码实现基于PCL库,通过KD树加速邻域搜索,使用高斯权重函数计算点位置更新。参数包括输出点比例、邻域半径、正则化权重和迭代次数。该算法不依赖网格信息,适合处理大规模扫描数据的预处理优化。

点云侠的博客 631

看懂 SAP S/4HANA 产品主数据里的 GTIN:一串号码背后的全球商品识别与业务协同

SAP S/4HANA中的GTIN管理是企业供应链运营的关键环节。本文深入解析GTIN的业务内涵及其在SAP系统中的实现方式:1) GTIN是全球通用的商品标识码,不同于企业内部物料编码;2) SAP主数据中GTIN与计量单位强绑定,需为不同包装层级维护独立GTIN;3) 同一产品可能因渠道、供应商差异存在多个GTIN;4) GTIN贯穿零售POS、仓储管理、EDI订单等核心业务流程;5) 通过典型案例说明错误维护GTIN将导致收银异常、仓库作业低效等运营问题。文章强调GTIN管理需结合包装层级、计量单位等

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 1433

jenkins的搭建与配置

文章目录搭建jenkins 搭建jenkins 将Jenkins的war包移动到tomcat的webapps下 [root@localhost ~]# mv jenkins.war /usr/local/tomcat/webapps/ [root@localhost ~]# ls /usr/local/tomcat/webapps/ docs examples host-manager jenkins jenkins.war manager ROOT 访问jenkins网站并解锁 [root@

h1228322088的博客 510

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

jenkins 安装插件失败_自动化部署—Jenkins环境搭建和配置

=================交个作业:hello-world级的自动化部署(Maven+Git+Docker+Jenkins),内容稍微有点儿多,分两篇,这是第一篇——环境搭建和配置。=================环境:CentOS7-64已安装JAVA8(Jekins需要)安装Maven:wget https://mirror.bit.edu.cn/apache/maven/...

weixin_39723248的博客 779

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

Windows系统下搭建Jenkins服务和邮件配置

一、此文章仅记录Windows系统下搭建Jenkins服务和邮件配置,本文使用的是QQ邮箱,其他邮箱配置方法基本一致。二、从 Jenkins 2.357(2022 年 6 月 28 日发布)以及 2022 年 9 月发布的 LTS(长期支持)版本开始,官方要求使用 Java 11。如果想要使用 JDK 1.8,就需要安装 Jenkins 2.357 版本之前的版本,因为这些旧版本是基于 Java 8 构建和测试的,能够在 Java 8 环境下正常运行。

weixin_44475572的博客 1783

一文看懂Jenkins环境搭建及配置

本文主要讲解了Jenkins环境部署及相关配置,同时给出了常用流水线管理示例。

专注IT技术。 1546

Docker 搭建 SonarQube + Jenkins 配置

Docker 搭建 SonarQube + Jenkins 配置

weixin_41285522的博客 858

[完整版]Windows下搭建及配置jenkins(上)

[完整版]Windows下搭建及配置jenkins(上)背景简介jenkins安装下载安装必要设置账户创建插件安装权限管理总结 背景简介 简单说一下这么做的初衷。目前公司做安全隔离,开发测试区环境的服务器全部不通外网,导致原先部署的jenkins无法实现包的更新,因此就有了这个想法, 在本地台式机上搭建一套jenkins,然后利用ssh完成远端部署,并利用jenkins的role权限隔离,完成开发、测试环境部署分割,可以大大提升工作效率。 由于使用的是win环境,因此在部署和配置过程中遇到不少坑点,简单写篇

SchrodingerY-博客 2102

Jenkins和Gitlab搭建及配置管理

一、环境配置 操作系统:CentOS-7.3 1611 x86_64 系统组件:服务器全安装版 所需安装包: Jenkins安装包:jenkins-2.150.3-1.1.noarch.rpm GitLab安装包:gitlab-ce-11.11.7-ce.0.el7.x86_64.rpm Jenkins插件安装包s CentOS-7.3 1611 x86_64安装IS...

Your Dream Started 5664

手把手教你搭建和配置Jenkins环境

搭建Jenkins,首先得安装Jenkins,安装的问题就不说了,一般第一次安装完成后,服务会直接在浏览器中运行,网址:http://localhost:8080。然后新建一个用户,登录    接下来就是如何配置Jenkins,我们现在做的系统是.Net平台的,所以配置的Jenkins适用于.Net,至于说Java的配置,暂时还不涉及,就不在这儿讲了。  配置SVN并新建一个简单的网站

令仔很忙 1万+

Jenkins搭建及自动化脚本配置等

Jenkins是一个独立的开源自动化服务器,可用于自动执行与构建、测试、交付或部署软件相关的各种任务。例如:检查代码、构建编译、运行测试、结果记录和测试统计等都是自动完成的。 使用Jenkins之前需要先安装Java环境。 1、安装Jenkins 官网地址: https://www.jenkins.io/ Jenkins安装首页面: 安装完成后直接弹出浏览器界面,默认访问地址:localhost:8080 输入管理员密码: 路径:C:\Windows\system32\config\systempro

石头缝里的小松鼠(AlySam) 1700

[搭建完整jenkins发布环境一]Centos环境下配置jenkins并启动

环境准备 java8 官方下载tar包,解压并配置环境变量(我放在/usr/local路径下)。安装jdk太基础,各自百度吧。 二、jenkins安装 2.1 rpm安装jenkins 点击下载rpm 如果下载失效,就到官网下载,很简单。安装命令如下: rpm -ih jenkins-2.150.2-1.1.noarch.rpm 简单介绍下安装后的得目录 /etc/init.d/jenk...

kouryoushine的博客 3962
上一篇: HBase2.0单机搭建
下一篇: HBase引入phoenix
programmeryu
博客等级 码龄11年 23粉丝 67原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值