2016-10-21 04:01:34 -05:00
+++
title = "Installing on Windows"
description = "Installing Grafana on Windows"
keywords = ["grafana", "configuration", "documentation", "windows"]
type = "docs"
[menu.docs]
parent = "installation"
weight = 3
+++
2015-04-13 01:14:13 -05:00
2016-10-21 04:01:34 -05:00
# Installing on Windows
2015-04-21 06:30:15 -05:00
Description | Download
------------ | -------------
2018-06-25 10:22:31 -05:00
Latest stable package for Windows | [x64 ](https://grafana.com/grafana/download?platform=windows )
2015-04-21 06:30:15 -05:00
2017-04-28 03:58:26 -05:00
Read [Upgrading Grafana ]({{< relref "installation/upgrading.md" >}} ) for tips and guidance on updating an existing
installation.
2015-04-21 06:30:15 -05:00
## Configure
2018-06-29 11:21:56 -05:00
**Important:** After you've downloaded the zip file and before extracting it, make sure to open properties for that file (right-click Properties) and check the `unblock` checkbox and `Ok` .
2015-05-10 15:52:40 -05:00
The zip file contains a folder with the current Grafana version. Extract
this folder to anywhere you want Grafana to run from. Go into the
`conf` directory and copy `sample.ini` to `custom.ini` . You should edit
`custom.ini` , never `defaults.ini` .
2015-04-21 06:30:15 -05:00
2015-05-10 15:52:40 -05:00
The default Grafana port is `3000` , this port requires extra permissions
on windows. Edit `custom.ini` and uncomment the `http_port`
2017-09-12 04:07:20 -05:00
configuration option (`;` is the comment character in ini files) and change it to something like `8080` or similar.
2015-05-10 15:52:40 -05:00
That port should not require extra Windows privileges.
2018-02-27 06:26:53 -06:00
Start Grafana by executing `grafana-server.exe` , located in the `bin` directory, preferably from the
2015-05-10 15:52:40 -05:00
command line. If you want to run Grafana as windows service, download
2018-02-27 06:26:53 -06:00
[NSSM ](https://nssm.cc/ ). It is very easy to add Grafana as a Windows
2015-05-10 15:52:40 -05:00
service using that tool.
2015-04-21 06:30:15 -05:00
2016-10-21 04:01:34 -05:00
Read more about the [configuration options ]({{< relref "configuration.md" >}} ).
2015-04-13 01:14:13 -05:00
2018-08-23 10:39:39 -05:00
## Logging in for the first time
To run Grafana open your browser and go to the port you configured above, e.g. http://localhost:8080/.
Then follow the instructions [here ](/guides/getting_started/ ).
2015-04-19 02:44:14 -05:00
## Building on Windows
2015-04-13 01:14:13 -05:00
2015-05-10 15:52:40 -05:00
The Grafana backend includes Sqlite3 which requires GCC to compile. So
in order to compile Grafana on Windows you need to install GCC. We
recommend [TDM-GCC ](http://tdm-gcc.tdragon.net/download ).