简体   繁体   English

AWS EC2实例上的Jenkins错误503

[英]Jenkins Error 503 on AWS EC2 Instance

I have created an AWS Ec2 instance using the following documentation: 我使用以下文档创建了一个AWS Ec2实例:

https://d0.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf https://d0.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf

However, when I get to the stage where I connect from my web browser to Jenkins using http://:8080 I get HTTP Error: 503. 但是,当我到达使用http://:8080从Web浏览器连接到Jenkins的阶段时,我收到HTTP错误:503。

I originally taught it was down to my network settings/security group settings on my AWS EC2 instance but I have installed Apache and I can access the Apache test page from port 80. I have allowed traffic from HTTP, SSH and TCP and set the appropriate ports as per the guide. 我最初的教导是我的AWS EC2实例上的网络设置/安全组设置,但我安装了Apache,我可以从端口80访问Apache测试页面。我允许来自HTTP,SSH和TCP的流量并设置适当的根据指南的端口。

I have tried curl http://localhost:8080 on the putty instance connected to my EC2 instance and I get the same error. 我在连接到我的EC2实例的putty实例上尝试了curl http:// localhost:8080 ,我得到了同样的错误。 Also, I have checked the /var/lib/jenkins folder and it is empty. 另外,我检查了/ var / lib / jenkins文件夹,它是空的。

Any help or direction in the right path would be greatly appreciated, 任何帮助或方向在正确的道路上将不胜感激,

Thank you. 谢谢。

If anyone runs into this problem in the future, the documentation installs the latest version of Jenkins. 如果将来有人遇到此问题,文档将安装最新版本的Jenkins。

I installed an older, stable Jenkins version and this worked perfectly using the "sudo yum install jenkins-2.47-1.1" 我安装了一个较旧,稳定的Jenkins版本,使用“sudo yum install jenkins-2.47-1.1”完美运行

The problem is resolved by installing Java 8. 通过安装Java 8解决了该问题。

https://issues.jenkins-ci.org/browse/JENKINS-43609 https://issues.jenkins-ci.org/browse/JENKINS-43609

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM