ubuntu – 无法访问Jenkins服务器

前端之家收集整理的这篇文章主要介绍了ubuntu – 无法访问Jenkins服务器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在我的Web服务器上安装 Jenkins,这是在Amazon EC2实例上运行的Ubuntu 13.10服务器.我已经重新启动了Jenkins
sudo /etc/init.d/jenkins restart

当我检查我的进程时

ps aux | grep jenkins

我可以看到多个项目运行时带有以下描述:

jenkins  22356  0.0  0.0  20268   400 ?        S    10:10   0:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -jar /usr/share/jenkins/jenkins.war --webroot=/var/run/jenkins/war --httpPort=8080 --ajp13Port=-1 --httpListenAddress=127.0.0.1 --ajp13ListenAddress=127.0.0.1 --preferredClassLoader=java.net.URLClassLoader
jenkins  22358  5.9  5.7 1618372 97376 ?       Sl   10:10   0:17 /usr/bin/java -jar /usr/share/jenkins/jenkins.war --webroot=/var/run/jenkins/war --httpPort=8080 --ajp13Port=-1 --httpListenAddress=127.0.0.1 --ajp13ListenAddress=127.0.0.1 --preferredClassLoader=java.net.URLClassLoader

服务器不希望允许我访问此安装,因此如果我访问

x.x.x.x:8080

我只是得到了“哎呀!谷歌Chrome无法连接”页面,甚至没有HTTP状态404/500.

我试过检查/var/log/jenkins/jenkins.log,但它没有表明任何问题.这是重启后的日志输出

Running from: /usr/share/jenkins/jenkins.war
Dec 02,2013 10:10:07 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Dec 02,2013 10:10:13 AM winstone.Logger logInternal
INFO: HTTP Listener started: port=8080
Dec 02,2013 10:10:13 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Dec 02,2013 10:10:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Dec 02,2013 10:10:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Dec 02,2013 10:10:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Dec 02,2013 10:10:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Dec 02,2013 10:10:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Dec 02,2013 10:10:22 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Dec 02,2013 10:10:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Dec 02,2013 10:10:23 AM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 43315
Dec 02,2013 10:10:23 AM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running

我以为我可能遇到阻止该端口的EC2安全组的问题,但我分配给该服务器的安全组已经为HTTP入站打开了8080端口.

我尝试的另一项检查是SSH进入服务器,并使用Lynx查看Jenkins是否实际上正在提供内容.我访问了http:// localhost:8080,它按预期显示了Jenkins页面.

有任何想法吗?

编辑2

如果在Amazon EC2实例上运行Jenkins,请尝试将HTTP_HOST设置为0.0.0.0.您可能无法直接绑定公共接口IP.

编辑1

如果直接从.deb包安装,请检查/ etc / default / jenkins.

看来Jenkins正在监听localhost(–httpListenAddress = 127.0.0.1).在此配置中,Jenkins不会侦听来自网络接口的连接.

要解析Ubuntu,请检查/etc/init/jenkins.conf的内容,并将–httpListenAddress = x.x.x.x追加到JENKINS_ARGS(其中x.x.x.x是服务器的外部IP地址).

原文链接:https://www.f2er.com/ubuntu/348556.html

猜你在找的Ubuntu相关文章