In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares to you is the example analysis of the SonarQube deployment pit, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
1: the first pit
7.4, which has been used locally, was specially downloaded from the official website when deployed on the server, but did not read the documentation carefully. After deployment, it was found that this version does not support mysql. Version 7.8 was the last version to support mysql, so it had to be switched to 7.8.
2: the second pit: ElasticSearch
Java.nio.file.AccessDeniedException: / usr/local/sonarQube/sonarqube-7.8/temp/conf/es/elasticsearch.yml
ElasticSearch is used in Sonar, but ElasticSearch does not support root account execution, so it needs to be run under another account.
The steps are as follows:
1: to prepare an account, whether it is a new account or an old account, you must give sonar directory permission.
2: set sonar.properties
Sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false
3: set wrapper.conf
Wrapper.java.additional.1=-Dsonar.wrapped=true-Dbootstrap.system_call_filter=false
4: add content: / sonarqube-7.8/elasticsearch/config/elasticsearch.yml
Bootstrap.memory_lock: falsebootstrap.system_call_filter: false
If the above methods are not effective: temporary files may cause: delete all files in the sonarqube temp directory.
Other:
Error message: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
Reason: ordinary user execution problem
Solution: switch to root user, edit / etc/security/limits.conf
Add userName hard nofile 65536
UserName soft nofile 65536
Error message: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Cause: the vm.max_map_count parameter setting of the operating system is too small
Solution: switch super user, edit / etc/sysctl.conf
Add vm.max_map_count=655360
Save exit, execute sysctl-p
The above is the example analysis of SonarQube deployment mining pit, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.