这是我参加8月更文应战的第5天,活动概略查看:8月更文应战

记载一下排错进程,希望能协助到需求的人,也给新人带来一些排错阅历

我是用非root用户发起的sonar,但是仍旧无法访问web页面

sonar发动报错Process exited with exit value [es]: 143

sonar发动报错Process exited with exit value [es]: 143

查看一下soanr状况,发现现已elasticsearch菜鸟教程连续工作

sonar发动报错Process exited with exit value [es]: 143

查看端口占用状况,并没有占用

sonar发动报错Process exited with exit value [es]: 143

查看日志,发现es有报错

Process exited with ex数据库体系概论第五版课后答案it value [es]: 143

sonar发动报错Process exited with exit value [es]: 143

查看es的日志,发现三条正告信息

sonar发动报错Process exited with exit value [es]: 143

sonar发动报错Process exited with exit value [es]: 143

  • setting was deelasticsearch教程precated in Elasticsearch and will be remo数据库有哪几种ved in a future release! See the breaking changes documentation for the next major version.
    

未处理

  • max file descriptors [4096] for elasticsearch proclinuxess is too lojava难学吗w, increasElasticsearche to at least [65536]
    

/etc/security/limits.conf装备文件中增加

用户名 hard nofile 65536

用户名 soelasticsearch怎么读ft nofielasticsearch面试题le 65536

sonar发动报错Process exited with exit value [es]: 143

使用ulimit -Hn指令查看装备是否收效:

sonar发动报错Process exited with exit value [es]: 143

  • malinux是什么操作体系x virtual memory alinux必学的60个指令reas vm.max_map_cou数据库办理体系nt [65530] is too low, increase to at least [262144数据库原理]
    

/etc/sysctl.conf装备文件中增加vm.max_map_count的值

sonar发动报错Process exited with exit value [es]: 143

然后实行sysctl -p使装备收效

sonar发动报错Process exited with exit value [es]: 143

然后发现仍是发起不了。

咱们再看一java难学吗下错误报告,Java会发现先是web程序连续,后是es程序连续

sonar发动报错Process exited with exit value [es]: 143

那么咱们elasticsearch装置有必要去看一下web的日志

sonar发动报错Process exited with exit value [es]: 143

然后发现,它数据库查询语句阅历了【发起web】->【联接es】->【创建数据库联接】->【web发起失利】->【java反常报错】

Can not connect to database. Please check connecelasticsearch原理tivity and settings (see theelasticsearch是什么 pelasticsearch菜鸟教程roperties prefixed by 'sonar.jdbc.').

无法联接到数据库。 请查看联接和设置(请参阅以“sonar.jdbc.”为前缀的特点)。

原来是联接数据库失利

  • 修改sonar装备文件optjava初学/sonarqube-6.7.4/conf/sonar.properties

    修改数据库联接用户名和暗码,以及吊销注释图中底行的联接地址

    Ps:sonar默许监听9000端口,如果9000端口被占用,需求更改。

sonar发动报错Process exited with exit value [es]: 143

再次发起sonar,su 用linux重启指令户名 ./bin/linux-x86-64/sonar.sh start

sonar发动报错Process exited with exit value [es]: 143

成功!