在Ubuntu 14上安装Jenkins - jenkins服务没有运行

时间:2017-09-28 11:02:35

标签: ubuntu jenkins

嘿伙计们我在ubuntu上安装了jenkins。然后检查jenkins服务,它不起作用。我试图用

运行jenkins
/usr/bin/java -Djava.awt.headless=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=                                                                  -1

有我的日志文件。我怎样才能解决这个问题 ?

感谢您的帮助

Running from: /usr/share/jenkins/jenkins.war


Sep 28, 2017 1:50:41 AM Main deleteWinstoneTempContents
**WARNING**: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war


Sep 28, 2017 1:50:42 AM org.eclipse.jetty.server.handler.ContextHandler setConte                                                                  xtPath
**WARNING**: Empty contextPath

Sep 28, 2017 1:50:49 AM org.eclipse.jetty.server.AbstractConnector doStop
INFO: Stopped ServerConnector@eadd4fb{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}

Sep 28, 2017 1:50:49 AM org.eclipse.jetty.server.session.HouseKeeper stopScavenging
INFO: Stopped scavenging

Sep 28, 2017 1:50:49 AM hudson.WebAppMain contextDestroyed
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason


Sep 28, 2017 1:50:49 AM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@72bc6553{/,null,UNAVAILABLE}{/var/cache/jenkins/war}

**SEVERE**: Container startup failed
java.io.IOException: Failed to start Jetty
        at winstone.Launcher.<init>(Launcher.java:156)
        at winstone.Launcher.main(Launcher.java:354)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at Main._main(Main.java:294)
        at Main.main(Main.java:132)
Caused by: java.net.BindException: Address already in use

1 个答案:

答案 0 :(得分:0)

停止在端口8080上运行的任何其他tomcat。也许尝试通过执行

来查找其他进程
  

ps aux | grep java

并杀死他们,然后重新启动Jenkins