StartSonar 包装器停止错误

poo*_*pta 5 sonarqube

我是使用声纳的新手。我正在尝试运行声纳服务器但出现错误

    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    | 2017.12.01 11:20:53 INFO  app[][o.s.a.AppFileSystem] Cleaning 
    or creating temp directory C:\sonarqube-6.5\temp
   jvm 1    | 2017.12.01 11:20:54 INFO  app[]
    [o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: C:\Program 
    Files\Java\jre1.8.0_151\bin\java -Djava.awt.headless=true -Xmx1G -
       Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -
    XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -
   XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -
   Djava.io.tmpdir=C:\sonarqube-6.5\temp -cp ./lib/common/*;./lib/search/* 
     org.sonar.search.SearchServer C:\sonarqube-6.5\temp\sq-
   process3727603115591368728properties
    jvm 1    | 2017.12.01 11:21:01 INFO  app[][o.s.a.SchedulerImpl] 
Process[es] is up
 jvm 1    | 2017.12.01 11:21:01 INFO  app[][o.s.a.p.JavaProcessLauncherImpl] 
 Launch process[web]: C:\Program Files\Java\jre1.8.0_151\bin\java -
 Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -
  XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\sonarqube-6.5\temp -cp 
   ./lib/common/*;./lib/server/*;C:\sonarqube-6.5\lib\jdbc\h2\h2-1.3.176.jar 
   org.sonar.server.app.WebServer C:\sonarqube-6.5\temp\sq-
   process5462578831133863784properties
   jvm 1    | 2017.12.01 11:21:02 INFO  app[][o.s.a.SchedulerImpl] Process 
    [web] is stopped
   jvm 1    | 2017.12.01 11:21:03 INFO  app[][o.s.a.SchedulerImpl] Process 
     [es] is stopped
    jvm 1    | 2017.12.01 11:21:03 INFO  app[][o.s.a.SchedulerImpl] 
      SonarQube is stopped
     wrapper  | <-- Wrapper Stopped
Run Code Online (Sandbox Code Playgroud)

检查日志中是否有 Web 获取错误无法初始化与 ProtocolHandler ["http-nio- 0.0.0.0-9000"]java.net.BindException 关联的端点:地址已在使用中:绑定我不确定这个问题的解决方案是什么我已经更改了 wrapper.conf 中的 Java 路径,并在环境变量中添加了路径。请帮我解决这个问题。

Sto*_*ica 2

ProtocolHandler ["http-nio-0.0.0.0-9000"]java.net.BindException:地址已在使用中

这种错误意味着另一个进程正在侦听端口 9000。请检查以下事项:

  • 您是否已运行另一个 SonarQube 实例?
    • localhost:9000在浏览器中转到
  • 您是否有其他进程可能正在使用此端口?
    • 检查正在运行的进程列表。在 Linux 上,您可以用来netstat -ntlp | grep :9000查找端口 9000 上正在运行的内容

一旦确定了其他什么正在使用端口 9000,就有几种解决方案路径:

  • 杀死其他进程
  • 更改其他进程或 SonarQube 的配置以使用不同的端口