zoukankan      html  css  js  c++  java
  • Jenkins启动时报错:java.net.BindException: Address already in use: bind 解决方法

    下载jenkins.war包后,进入Jenkins.war包目录下,运行java -jar jenkins.war时报端口被占用的错误:java.net.BindException: Address already in use: bind,具体如:

    [33m2014-11-18 9:53:11 org.eclipse.jetty.util.log.JavaUtilLog warn
    警告: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use: bind
    java.net.BindException: Address already in use: bind
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
      at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at org.eclipse.jetty.server.Server.doStart(Server.java:293)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at winstone.Launcher.<init>(Launcher.java:154)
      at winstone.Launcher.main(Launcher.java:354)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at Main._main(Main.java:293)
      at Main.main(Main.java:98)
      [33m2014-11-18 9:53:11 org.eclipse.jetty.util.log.JavaUtilLog warn
    警告: FAILED org.eclipse.jetty.server.Server@117f31e: java.net.BindException: Address already in use: bind
    java.net.BindException: Address already in use: bind
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
      at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at org.eclipse.jetty.server.Server.doStart(Server.java:293)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at winstone.Launcher.<init>(Launcher.java:154)
      at winstone.Launcher.main(Launcher.java:354)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at Main._main(Main.java:293)
      at Main.main(Main.java:98)
    [0m2014-11-18 9:53:11 org.eclipse.jetty.util.log.JavaUtilLog info
    信息: stopped w.{,file:/C:/Users/Administrator/.jenkins/war/},C:UsersAdministrator.jenkinswar

    解决方法:修改Jenkins端口java -jar jenkins.war --httpPort=8081

  • 相关阅读:
    [JSOI2007]文本生成器 --- AC自动机 + DP
    [POI2000]病毒 --- AC自动机
    [HNOI2011]数学作业 --- 矩阵优化
    [BZOJ4245][ONTAK2015]OR-XOR(贪心)
    [BZOJ4247]挂饰(DP)
    [BZOJ4032][HEOI2015]最短不公共子串(Trie+DP)
    [BZOJ4028][HEOI2015]公约数数列(分块)
    [BZOJ4027][HEOI2015]兔子与樱花(贪心)
    [BZOJ4004][JLOI2015]装备购买(贪心+线性基)
    [HDU5029]Relief grain(树链剖分+线段树)
  • 原文地址:https://www.cnblogs.com/dtest/p/4105232.html
Copyright © 2011-2022 走看看