0

我已经下载了 mysql 5.6 和 sonarqube。我正在关注 SonarQube 网站上的教程。当我运行 SonarQube 时,我遇到了异常。这是我的 sonar.properties 文件:

...
sonar.web.host:                           0.0.0.1
sonar.web.port:                           80
sonar.web.context:                        /sonar
...
#----- Credentials
# Permissions to create tables and indexes must be granted to JDBC user.
# The schema must be created first.
sonar.jdbc.username:                       sonar
sonar.jdbc.password:                       sonar
...
#----- MySQL 5.x
# Comment the embedded database and uncomment the following line to use MySQL
sonar.jdbc.url:jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
...

以下显示了我的例外情况:

wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2013-09-16 15:21:04.651:INFO:oejs.Server:jetty-7.6.11.v20130520
jvm 1    | JRuby limited openssl loaded. http://jruby.org/openssl
jvm 1    | gem install jruby-openssl for full support.
jvm 1    | 2013-09-16 15:21:18.395:INFO:oejsh.ContextHandler:started o.e.j.w.Web
AppContext{/sonar,file:/C:/sonar-3.7/war/sonar-server/},file:/C:/sonar-3.7/war/s
onar-server
jvm 1    | 2013-09-16 15:21:18.700:WARN:oejuc.AbstractLifeCycle:FAILED SelectCha
nnelConnector@0.0.0.1:80: java.net.BindException: Cannot assign requested addres
s: bind
jvm 1    | java.net.BindException: Cannot assign requested address: bind
jvm 1    |      at sun.nio.ch.Net.bind0(Native Method)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(Sele
ctChannelConnector.java:187)
jvm 1    |      at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractCo
nnector.java:316)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(S
electChannelConnector.java:265)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:292)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:
67)
jvm 1    |      at org.sonar.application.StartServer.main(StartServer.java:47)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2013-09-16 15:21:18.701:WARN:oejuc.AbstractLifeCycle:FAILED org.eclip
se.jetty.server.Server@11597f2: java.net.BindException: Cannot assign requested
address: bind
jvm 1    | java.net.BindException: Cannot assign requested address: bind
jvm 1    |      at sun.nio.ch.Net.bind0(Native Method)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(Sele
ctChannelConnector.java:187)
jvm 1    |      at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractCo
nnector.java:316)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(S
electChannelConnector.java:265)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:292)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:
67)
jvm 1    |      at org.sonar.application.StartServer.main(StartServer.java:47)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    |
jvm 1    | WrapperSimpleApp: Encountered an error running main: java.net.BindExc
eption: Cannot assign requested address: bind
jvm 1    | java.net.BindException: Cannot assign requested address: bind
jvm 1    |      at sun.nio.ch.Net.bind0(Native Method)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.Net.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
jvm 1    |      at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(Sele
ctChannelConnector.java:187)
jvm 1    |      at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractCo
nnector.java:316)
jvm 1    |      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(S
electChannelConnector.java:265)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:292)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:64)
jvm 1    |      at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:
67)
jvm 1    |      at org.sonar.application.StartServer.main(StartServer.java:47)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
wrapper  | <-- Wrapper Stopped

是否需要更改任何其他文件才能完成工作?

4

0 回答 0