詹金斯没有响应
问题:詹金斯没有响应 我在我的 Amazon-AWS 服务器上新安装了 Jenkins。我将 Jenkins 端口更改为 8081 并启动它。我验证了 Jenkins 正在端口8081上运行。 [ec2-user@ip-172-31-28-247 ~]$ ps -eaf | grep 8081 jenkins 1370 1 0 03:42 ? 00:00:11 /etc/alternatives/
问题:詹金斯没有响应
我在我的 Amazon-AWS 服务器上新安装了 Jenkins。我将 Jenkins 端口更改为 8081 并启动它。我验证了 Jenkins 正在端口8081
上运行。
[ec2-user@ip-172-31-28-247 ~]$ ps -eaf | grep 8081
jenkins 1370 1 0 03:42 ? 00:00:11 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8081 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
ec2-user 1611 1585 0 04:34 pts/1 00:00:00 grep --color=auto 8081
[ec2-user@ip-172-31-28-247 ~]$
但是,当我尝试使用此 url 访问 Jenkins 时:
http://ec2-54-214-126-0.us-west-2.compute.amazonaws.com:8081
它说
无法访问此站点 ec2-54-214-126-0.us-west-2.compute.amazonaws.com 响应时间过长。
在同一台服务器上,我在端口:8080
上运行 tomcat,我可以访问它,它显示 tomcat 主页。
http://ec2-54-214-126-0.us-west-2.compute.amazonaws.com:8080/
我是詹金斯的新手。
解答
查看指南“Set Up a Jenkins Build Server -- Quickly create a build server for Continuous Integration (CI) on AWS”
它确实有一个关于 Amazon EC2 实例的安全组的部分,它充当防火墙,控制允许到达一个或多个 EC2 实例的流量。
也许 8081 不是该安全组的一部分。
在https://console.aws.amazon.com/ec2/打开 Amazon EC2 控制台。
在左侧导航栏中,选择安全组。
单击Add Rule
,然后从Type
列表中选择Custom TCP Rule
。
在端口范围下输入 8081。
更多推荐
所有评论(0)