gpt4 book ai didi

jenkins - 在 127.0.0.1 上启动 https Jenkins 服务器

转载 作者:行者123 更新时间:2023-12-01 11:34:35 24 4
gpt4 key购买 nike

令人尴尬的是,我只读了一页Jenkins 持续集成指南,我已经被这个命令困住了:

Java -jar jenkins.war --httpsPort=8443 --httpPort=-1

在我的 Mac 上,这会引发:

Running from: /home/NAThompson/jenkins/war/target/jenkins.war
webroot: $user.home/.jenkins
Feb 22, 2015 7:37:24 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Using one-time self-signed certificate
Feb 22, 2015 7:37:24 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Feb 22, 2015 7:37:24 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:209)
at winstone.Launcher.<init>(Launcher.java:149)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Caused by: java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:100)
at winstone.Launcher.spawnListener(Launcher.java:207)
... 8 more
Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

我该怎么做才能解决这个问题?作为无关信息,服务器可以使用 http 正常启动。

最佳答案

这看起来像一个 known issue尝试直接从 jenkins.war 使用 HTTPS。有些人建议从 Tomcat 中运行 Jenkins 并让 Tomcat 处理 SSL(不过,我还没有亲自尝试过)。

关于jenkins - 在 127.0.0.1 上启动 https Jenkins 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28665783/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com