sonar启动几秒钟后会自动关闭
网上搜到的方法都没用
安装步骤如下:
https://www.unixhot.com/article/56
日志如下:
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.11.10 01:49:46 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/local/sonarqube-7.4/temp
2018.11.10 01:49:46 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.11.10 01:49:46 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/local/sonarqube-7.4/elasticsearch]: /usr/local/sonarqube-7.4/elasticsearch/bin/elasticsearch -Epath.conf=/usr/local/sonarqube-7.4/temp/conf/es
2018.11.10 01:49:46 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
2018.11.10 01:49:47 INFO app[][o.e.p.PluginsService] no modules loaded
2018.11.10 01:49:47 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.11.10 01:49:52 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
2018.11.10 01:49:52 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.11.10 01:49:52 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
请问问题出在哪里?
查看es.log, 报错:java.lang.RuntimeException: can not run elasticsearch as root 使用非root用户运行sonar.sh start即可
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。