Installing the Sonar web server
Place the downloaded file in the directory to which you want to install Sonar, open the terminal window, and enter the following command to unzip it:
$ unzip sonar-2.11.zip
Important Sonar directories to take a note of are:
conf
: Sonar, database, and logging configuration in the form of XML and property files are stored here.extensions
: JDBC drivers and Sonar plugins are located here.logs
: All logging goes to this directory; this is the place to check when something goes wrong with our Sonar instance.bin
: This directory contains Sonar startup scripts for different Windows and Linux platforms.
To start the Sonar server in Linux, open a terminal, navigate in to the bin
directory, and execute the startup script for your platform. For example:
$ bin/linux-x86-32/sonar.sh console
On Windows 32-bit, execute the following command:
$ bin\windows-x86-32\StartSonar.bat
When Sonar starts for the first time, it creates and populates the embedded Apache Derby...