How to change data folder in sonarqube?

喜欢而已 提交于 2019-12-24 16:22:31

问题


How to change data folder in sonarqube? I need to change the installation data folder to other location, is it possible? Who is the responsible of write & change this folder? Is the wrapper? I can change de location of h2 database but not the data folder location. I use Sonarqube 5.0


回答1:


See in your sonar.properties:

# Paths to persistent data files (embedded database and search index) and temporary files.
# Can be absolute or relative to installation directory.
# Defaults are respectively <installation home>/data and <installation home>/temp
#sonar.path.data=data
#sonar.path.temp=temp

You can uncomment the line sonar.path.data and set the value as needed.




回答2:


I guess that you'll have to follow the update instructions from sonarqube, as if you were to update sonarqueb to other folder/version, and remove the steps involved in the update.

http://docs.sonarqube.org/display/SONAR/Upgrading

I would try this:

  1. Stop the SonarQube server
  2. Move the sonar old folder to your new folder, let's say NEW_SONARQUBE_HOME.
  3. Back up your database, just in case.
  4. Start the web server inside your new_Sonarquebe_home


来源:https://stackoverflow.com/questions/31116309/how-to-change-data-folder-in-sonarqube

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!