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:
- Stop the SonarQube server
- Move the sonar old folder to your new folder, let's say NEW_SONARQUBE_HOME.
- Back up your database, just in case.
- Start the web server inside your new_Sonarquebe_home