繁体   English   中英

无法访问谷歌云计算引擎上的 Jenkins

[英]Unable to access Jenkins on compute engine on google cloud

我已经使用以下命令在谷歌云计算引擎上运行的 Ubuntu 机器上安装了 Jenkins。

sudo apt-get install apache2 libapache2-mod-php5 php5-mcrypt php5-mysql git openjdk-7-jre openjdk-7-jdk -y
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

Jenkins 似乎安装正常,但是当我将 go 发送到端口 8080 上的公共 IP 地址时,没有任何内容打开,我收到超时错误。

我发现类似的问题Jenkins not showing on Ubuntu through google cloud但我已经完成了此处提到的防火墙规则部分但我仍然无法打开端口 8080 上的地址。

1.规则的名称 - jenkins-rule。 2.Direction 是入口 3.Action on match 是 Allow 4.Targets 是 All instances 5.Source IP ranges 是 0.0.0.0/0 6.Protocols and ports 是 tcp:8080

由于您已经配置了 FW 规则,在我看来您需要重新启动 Jenkins 服务

sudo systemctl restart jenkins

如果不工作重置虚拟机并检查 Jenkins 服务的状态后检查它

sudo systemctl status jenkins

对我来说它有效!

暂无
暂无

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

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