jenkins - 将 hudson 隐藏在 Apache 后面

标签 jenkins continuous-integration hudson

我正在把头发拉出来。我在服务器上运行 Hudson,并希望将它放在在 Ubuntu 上运行的 Apache 后面。所以我安装了 apt 源和 Hudson 包,它已经启动并运行了。

我将其配置为仅在 localhost 上监听,但显然这被忽略了。运行命令是:

/usr/bin/java -Djava.net.preferIPv4Stack=true -jar 
         /usr/share/hudson/hudson.war --webroot=/var/run/hudson/war 
         --httpPort=7000 --httpListenAddress=127.0.0.1

这是大但是
netstat -tulpn | grep 7000

返回:
tcp        0      0 0.0.0.0:7000        0.0.0.0:*       LISTEN      27525/java

所以它仍在收听公共(public)地址。

我的 /etc/default/hudson看起来像这样:
NAME=HUDSON
JAVA=/usr/bin/java
PIDFILE=/var/run/hudson/hudson.pid
HUDSON_USER=hudson
HUDSON_WAR=/usr/share/hudson/hudson.war
HUDSON_HOME=/home/dev

RUN_STANDALONE=true
HUDSON_LOG=/var/log/hudson/$NAME.log
MAXOPENFILES=8192
HTTP_PORT=7000
AJP_PORT=8102
HTTP_HOST=127.0.0.1
HUDSON_ARGS="--webroot=/var/run/hudson/war --httpPort=7000 
                                         --httpListenAddress=127.0.0.1"

我究竟做错了什么?

最佳答案

尽管文档说了什么,但这似乎没有在当前代码中实现。我已经向开发人员提出了一个关于此的严重错误。

https://bugs.eclipse.org/bugs/show_bug.cgi?id=407348

关于jenkins - 将 hudson 隐藏在 Apache 后面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16308472/

相关文章:

Jenkins 多分支管道仅用于子文件夹

java - 如何在 Jenkins 插件中将对象绑定(bind)到 URL

maven-2 - 配置一个 hudson maven 作业以在测试失败时继续构建,但仅在没有测试失败时部署

Jenkins 上的 Android Maven 项目

java - 如何在文件夹级别读取 Jenkins 凭据

ios - 从 Apple 开发站点获取配置文件的 API

node.js - Webpack开发服务器: Hook or mechanism for trigger command once that the server is running

php - 您对 PHP Web 应用程序的集成测试有何建议?

maven-2 - 设置Maven仓库目录

jenkins - 使用 Ansible 配置 Jenkins 2.0