标签:adl proc sql enc process name x86_64 arc last
cat /usr/local/sonarqube/logs/sonar.log #查看日志
WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/elasticsearch.yml
java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/elasticsearch.yml
[sonar@localhost root]$ ll -d /usr/local/sonarqube/temp/conf/ #原因是root启动配置文件生成时 被修改为root
drwxr-xr-x 3 root root 16 6月 13 10:38 /usr/local/sonarqube/temp/conf/
rm -fr /usr/local/sonarqube/temp/conf
su - sonar -c "/usr/bin/sonar restart"
启动成功
2020.06.15 23:10:04 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2020.06.15 23:10:04 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘web‘, ipcIndex=2, logFilenamePrefix=web]] from [/usr/local/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/local/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:/usr/local/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /usr/local/sonarqube/temp/sq-process5151984946331936009properties
2020.06.15 23:10:21 INFO app[][o.s.a.SchedulerImpl] Process[web] is up
2020.06.15 23:10:21 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘ce‘, ipcIndex=3, logFilenamePrefix=ce]] from [/usr/local/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/local/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:./lib/ce/*:/usr/local/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.ce.app.CeServer /usr/local/sonarqube/temp/sq-process1847175796324308037properties
2020.06.15 23:10:27 INFO app[][o.s.a.SchedulerImpl] Process[ce] is up
2020.06.15 23:10:27 INFO app[][o.s.a.SchedulerImpl] SonarQube is up
标签:adl proc sql enc process name x86_64 arc last
原文地址:https://www.cnblogs.com/lzq70112/p/13138478.html