gpt4 book ai didi

azure - 如何使用 Jenkins 部署到安全(https)tomcat 服务器?

转载 作者:行者123 更新时间:2023-11-28 21:53:08 31 4
gpt4 key购买 nike

我想为我的一台生产服务器设置 CI。该服务器受 HTTPS 保护。然而,当 Jenkins 尝试部署时,它给出了以下异常:

org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403)

Tomcat 服务器 (8.x) 托管在基于 Cent-OS 的计算机上的 Azure 云上。我在 tomcat-users.xml 中为用户授予了以下角色:

roles="manager-jmx,manager-gui,manager-script,standard"

是否需要任何其他角色才能允许基于文本的访问?

最佳答案

基于文档 [ https://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html]你看起来是正确的。

但根据错误消息 - 似乎正在调用文本接口(interface)。这意味着您可能需要添加manager-status作为角色。

关于azure - 如何使用 Jenkins 部署到安全(https)tomcat 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36761454/

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