AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1081372
Accepted
perepm
perepm
Asked: 2021-10-23 00:56:42 +0800 CST2021-10-23 00:56:42 +0800 CST 2021-10-23 00:56:42 +0800 CST

Jenkins网络配置参数是在安装还是运行jenkins时使用的?

  • 772

安装 Jenkins(老式方式,而不是 docker 容器)后,我意识到当前的 Jenkins 网络配置(所有默认设置)不允许我代理来自 nginx 的 https 请求。

所以我遇到了jenkins 网络配置,但是从它的编写方式来看,我不知道是否必须停止 jenkins,并使用这些标志重新运行它;或者如果我需要卸载它并以某种方式使用这些重新安装它。

我应该如何配置詹金斯?

https jenkins
  • 1 1 个回答
  • 522 Views

1 个回答

  • Voted
  1. Best Answer
    Ian W
    2021-10-27T19:36:33+08:002021-10-27T19:36:33+08:00

    当您启动 Jenkins 时,这些网络选项是 Jenkins 的命令行选项/参数,因此请停止并重新启动 w/PARAMS,但是您已配置。

    基本顺序是: java -jar jenkins.war [--option=value] [--option=value],

    或者,更完整地说:

    $JAVA_HOME/bin/java $JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR $PARAMS

    不要混淆 JAVA_OPTS 和 JENKINS_OPTS (PARAMS)。

    您可以通过运行获得所有选项:java -jar jenkins.war --helpfor your current war。2.303.2(此时最新的 LTS)的选项如下。

    您可以在Docker 镜像、rpm 包、suse init、debian init等的源代码中看到启动命令的示例。

    C:\apps\j2>java -jar jenkins-2.303.2.war  --help
    Running from: C:\apps\j2\jenkins-2.303.2.war
    webroot: $user.home/.jenkins
    Jenkins Automation Server Engine 2.303.2
    
    Options:
    Usage: java -jar jenkins.war [--option=value] [--option=value]
       --webroot                = folder where the WAR file is expanded into. Default is ${JENKINS_HOME}/war
       --pluginroot             = folder where the plugin archives are expanded into. Default is ${JENKINS_HOME}/plugins
                                  (NOTE: this option does not change the directory where the plugin archives are stored)
       --extractedFilesFolder   = folder where extracted files are to be located. Default is the temp folder
       --daemon                 = fork into background and run as daemon (Unix only)
       --logfile                = redirect log messages to this file
       --enable-future-java     = allows running with new Java versions which are not fully supported (class version 52 and above)
       --javaHome               = Override the JAVA_HOME variable
       --toolsJar               = The location of tools.jar. Default is JAVA_HOME/lib/tools.jar
       --config                 = load configuration properties from here. Default is ./winstone.properties
       --prefix                 = add this prefix to all URLs (eg http://localhost:8080/prefix/resource). Default is none
       --commonLibFolder        = folder for additional jar files. Default is ./lib
    
       --extraLibFolder         = folder for additional jar files to add to Jetty classloader
    
       --logThrowingLineNo      = show the line no that logged the message (slow). Default is false
       --logThrowingThread      = show the thread that logged the message. Default is false
       --debug                  = set the level of debug msgs (1-9). Default is 5 (INFO level)
    
       --httpPort               = set the http listening port. -1 to disable, Default is 8080
       --httpListenAddress      = set the http listening address. Default is all interfaces
       --httpKeepAliveTimeout   = how long idle HTTP keep-alive connections are kept around (in ms; default 5000)?
       --httpsPort              = set the https listening port. -1 to disable, Default is disabled
       --httpsListenAddress     = set the https listening address. Default is all interfaces
       --httpsKeepAliveTimeout  = how long idle HTTPS keep-alive connections are kept around (in ms; default 5000)?
       --httpsKeyStore          = the location of the SSL KeyStore file. Default is ./winstone.ks
       --httpsKeyStorePassword  = the password for the SSL KeyStore file. Default is null
       --httpsKeyManagerType    = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509
       --httpsPrivateKey        = this switch with --httpsCertificate can be used to run HTTPS with OpenSSL secret key
         / --httpsCertificate     file and the corresponding certificate file
       --httpsRedirectHttp      = redirect http requests to https (requires both --httpPort and --httpsPort)
       --http2Port              = set the http2 listening port. -1 to disable, Default is disabled
       --http2ListenAddress     = set the http2 listening address. Default is all interfaces
       --excludeCipherSuites    = set the ciphers to exclude (comma separated, use blank quote " " to exclude none) (default is
                               // Exclude weak / insecure ciphers
                               "^.*_(MD5|SHA|SHA1)$",
                               // Exclude ciphers that don't support forward secrecy
                               "^TLS_RSA_.*$",
                               // The following exclusions are present to cleanup known bad cipher
                               // suites that may be accidentally included via include patterns.
                               // The default enabled cipher list in Java will not include these
                               // (but they are available in the supported list).
                               "^SSL_.*$",
                               "^.*_NULL_.*$",
                               "^.*_anon_.*$"
       --controlPort            = set the shutdown/control port. -1 to disable, Default disabled
    
       --useJasper              = enable jasper JSP handling (true/false). Default is false
       --sessionTimeout         = set the http session timeout value in minutes. Default to what webapp specifies, and then to 60 minutes
       --sessionEviction        = set the session eviction timeout for idle sessions in seconds. Default value is 180. -1 never evict, 0 evict on exit
       --mimeTypes=ARG          = define additional MIME type mappings. ARG would be EXT=MIMETYPE:EXT=MIMETYPE:...
                                  (e.g., xls=application/vnd.ms-excel:wmf=application/x-msmetafile)
       --requestHeaderSize=N    = set the maximum size in bytes of the request header. Default is 8192.
       --maxParamCount=N        = set the max number of parameters allowed in a form submission to protect
                                  against hash DoS attack (oCERT #2011-003). Default is 10000.
       --useJmx                 = Enable Jetty Jmx
       --qtpMaxThreadsCount     = max threads number when using Jetty Queued Thread Pool
       --jettyAcceptorsCount    = Jetty Acceptors number
       --jettySelectorsCount    = Jetty Selectors number
       --usage / --help         = show this message
     Security options:
       --realmClassName               = Set the realm class to use for user authentication. Defaults to ArgumentsRealm class
    
       --argumentsRealm.passwd.<user> = Password for user <user>. Only valid for the ArgumentsRealm realm class
       --argumentsRealm.roles.<user>  = Roles for user <user> (comma separated). Only valid for the ArgumentsRealm realm class
    
       --fileRealm.configFile         = File containing users/passwds/roles. Only valid for the FileRealm realm class
    
     Access logging:
       --accessLoggerClassName        = Set the access logger class to use for user authentication. Defaults to disabled
       --simpleAccessLogger.format    = The log format to use. Supports combined/common/resin/custom (SimpleAccessLogger only)
       --simpleAccessLogger.file      = The location pattern for the log file(SimpleAccessLogger only)
    

    笔记:

    还有其他“受系统属性控制的 Jenkins 功能”。这些是违反直觉的(即:JENKINS_JAVA_OPTIONS):

    系统属性是通过传递-Dproperty=value给java 命令行以启动 Jenkins 来定义的。确保在 -jar 参数之前传递所有这些参数,否则它们将被忽略。

    附加网络说明:

    • 反向代理配置
    • Cloudbees 代理配置说明
    • Jenkins 反向代理认证和授权插件
    • 管理插件 - 高级安装
    • 2

相关问题

  • 为 IIS 7.0 问题创建证书

  • IE6 和更高版本在 HTTPS 处理方面的差异

  • 如何模拟连接到 HTTPS 并记录握手?

  • SSL 错误:ssl_error_bad_mac_read

  • 在实时站点上使用自签名证书有什么好处?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve