简体   繁体   English

为什么我无法通过 server_ip:8080 访问 Jenkins?

[英]Why I can't access Jenkins by server_ip:8080?

I tried to install Jenkins on my gcp instance.我试图在我的 gcp 实例上安装 Jenkins。 This log shows that jenkins service active此日志显示 jenkins 服务处于活动状态

● jenkins.service - Jenkins Continuous Integration Server
     Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-07-15 00:17:18 UTC; 51s ago
   Main PID: 4903 (java)
      Tasks: 48 (limit: 2359)
     Memory: 713.3M
     CGroup: /system.slice/jenkins.service
             └─4903 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

This log shows, that port 8080 opened此日志显示,端口 8080 已打开

ubuntu@jenkins:~$ netstat -an | grep "LISTEN "
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN     
tcp6       0      0 :::8080                 :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN   

ubuntu@jenkins:~$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
8080                       ALLOW       Anywhere                  
OpenSSH                    ALLOW       Anywhere                  
8080 (v6)                  ALLOW       Anywhere (v6)             
OpenSSH (v6)               ALLOW       Anywhere (v6)      

But if I tryied to connect server_ip:8080 browser shows me ERR_CONNECTION_TIMED_OUT但是如果我尝试连接 server_ip:8080 浏览器会显示 ERR_CONNECTION_TIMED_OUT

ubuntu@jenkins:~$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
ubuntu@jenkins:~$  telnet ::1 8080
Trying ::1...
Connected to ::1.
Escape character is '^]'.
Connection closed by foreign host.

firewall rules cgp防火墙规则 cgp

我必须为网络中的所有实例设置允许目标,而不是在 gcp 防火墙面板中指定目标标签

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

相关问题 我无法在 MacOS 上使用 Docker 在 http://localhost:8080 访问 Jenkins - I can't access Jenkins at http://localhost:8080 with Docker on MacOS 无法使用端口8080访问在Raspberry Pi上运行的Jenkins - Can't access Jenkins running on a Raspberry Pi using port 8080 如何在 ubuntu 18.04 服务器的 apache2 下使用 SSL 保护 Jenkins 端口 8080? - How can I secure Jenkins port 8080 with SSL under apache2 in ubuntu 18.04 Server? 防止Jenkins访问8080端口 - Prevent Jenkins access on port 8080 Jenkins 启动并运行,但无法通过浏览器访问 8080 AWS ubuntu 端口 - Jenkins up and running but can't access through browser on port 8080 AWS ubuntu Jenkins in Azure VM“无法访问此站点”,地址为 8080 - Jenkins in Azure VM "This site can’t be reached" at 8080 localhost的IP地址:8080-github + jenkins的webhooks - IP address of localhost:8080 -in webhooks of github +jenkins 为什么我不能创建一个詹金斯帐户? - Why can't I create a Jenkins account? 如何启动 jenkins 服务器<myaddress> :8080/jenkins 而不是<myaddress> :8080</myaddress></myaddress> - How to start jenkins server on <myaddress>:8080/jenkins instead of <myaddress>:8080 how to block windows jenkins HTTP URL access( http://hostname:8080 ) so that i can use only HTTPS via https://jenkins.domain.com - how to block windows jenkins HTTP URL access( http://hostname:8080 ) so that i can use only HTTPS via https://jenkins.domain.com
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM