zoukankan      html  css  js  c++  java
  • docker jenkins权限恢复

    1、进入JENKINS_HOME目录,找到config.xml文件,打开config.xml:

    #cd /

    #find -name "config.xml"

      ./home/admin/.jenkins/config.xml

    #cp config.xml configbak.xml

    #vi ./home/admin/.jenkins/config.xml

    <useSecurity>true</useSecurity>
      <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
      <securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
        <disableSignup>true</disableSignup>
        <enableCaptcha>false</enableCaptcha>
      </securityRealm>


    2、命令行重启jenkins

    #/home/admin/start.sh   #重启jenkins

     注意:此时不可在链接后/restart进行重启。

    3、docker执行/home/admin/start_after.sh中Java进程不生效的方案

    切换用户root>admin 用户需要source一下Java
    source /etc/profile &&
    cd /export/servers &&
    wget ftp://jenkins:jenkins@172.20.145.21/repo/green_bee/green_bee.tgz &&
    tar -xf green_bee.tgz &&
    sh /export/servers/green_bee/bin/gather.sh start 

    ------------------------------------------------------Tanwheey-------------------------------------------------------------------------

    爱生活,爱工作。

  • 相关阅读:
    python pyinotify模块详解
    lastpass密码管理工具使用教程
    MAMP 环境下安装Redis扩展
    SourceTree使用方法
    Mac securecrt 破解
    Memcache 安装
    Warning: setcookie() expects parameter 3 to be long, string given
    SQLSTATE[HY000] [2002] Connection refused
    插件管理无法访问
    光栅化渲染器
  • 原文地址:https://www.cnblogs.com/Tanwheey/p/12176775.html
Copyright © 2011-2022 走看看