【问题标题】:Fail to start jenkins from browser无法从浏览器启动 jenkins
【发布时间】:2012-09-20 04:59:09
【问题描述】:

我对詹金斯真的很陌生。 今天我安装并尝试玩。当然,我错过了一把钥匙。

我的环境: java版本 java版本“1.6.0_24” OpenJDK 运行时环境 (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64) OpenJDK 64 位服务器虚拟机(build 20.0-b12,混合模式)

tomcat6

CentOS 6.3

在命令行中,我运行 jenkins.war,结果如下

java -jar jenkins.war --httpPort=8082 --ajp13Port=-1

Running from: /var/lib/tomcat6/webapps/jenkins.war
webroot: $user.home/.jenkins
Sep 20, 2012 1:32:55 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jenkins home directory: /home/admin/.jenkins found at: $user.home/.jenkins
Sep 20, 2012 1:32:56 PM winstone.Logger logInternal
INFO: HTTP Listener started: port=8082
Sep 20, 2012 1:32:56 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Sep 20, 2012 1:32:56 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Sep 20, 2012 1:32:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Sep 20, 2012 1:32:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Sep 20, 2012 1:32:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Sep 20, 2012 1:32:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Sep 20, 2012 1:32:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Sep 20, 2012 1:33:00 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration run
INFO: Trying to register BouncyCastle as a JCE provider
Sep 20, 2012 1:33:00 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration run
INFO: Registration succeeded
Sep 20, 2012 1:33:00 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 34921
Sep 20, 2012 1:33:01 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Sep 20, 2012 1:33:01 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 59382
Sep 20, 2012 1:33:01 PM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running

所以我认为一切都很好。

在浏览器中,这些都不起作用

http://IP:8080/jenkins
http://IP:8082/jenkins

有人可以帮我解决这个问题吗?

最好的问候, 阿杰伊佛

【问题讨论】:

    标签: jenkins


    【解决方案1】:

    为什么要在末尾添加 /jenkins? http://:8082 应该够用了 此外,您是否检查过您的防火墙、代理或防病毒软件? 您可以通过在浏览器中输入 localhost:8082 在本地访问您的安装吗?如果是,则上述之一或其他一些网络配置可能是问题

    【讨论】:

    • 非常感谢。我认为这与防火墙和网络配置有关。当我运行 /etc/rc.d/init.d/iptables stop 时,它工作正常。我将调查配置并让您知道。感谢 Adjeiinfo
    • 如果您找到了解决方案并且我的回答对您有帮助,请接受它作为正确答案:)
    【解决方案2】:

    禁用防火墙

    可能有必要在某些港口港口禁用 parafire 示例:8080 Lunix 命令

    firewall-cmd --zone=public --add-port=8080/tcp --permanent
    
    firewall-cmd --zone=public --add-service=http --permanent
    
    firewall-cmd --reload
    

    该命令在虚拟机上的 CentOS 上测试

    【讨论】:

      【解决方案3】:

      使用安装程序并修复 Jenkins 服务。

      如果是 Windows,请使用下载的 Zip 并解压 msi 安装程序文件。

      双击它并修复系统上的 jenkins 安装

      【讨论】:

        猜你喜欢
        • 2016-08-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-10-02
        • 1970-01-01
        • 2014-03-11
        • 2023-03-10
        • 2016-09-25
        相关资源
        最近更新 更多