# Auto start Grafana building from sources

**URL:** <https://community.grafana.com/t/auto-start-grafana-building-from-sources/6144>\
**Category:** Installation\
**Created:** [March 14, 2018, 10:32am UTC](https://community.grafana.com/t/auto-start-grafana-building-from-sources/6144 "2018-03-14T10:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandonet](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sandonet](https://community.grafana.com/u/sandonet)\
**Post date:** [March 14, 2018, 10:32am UTC](https://community.grafana.com/t/auto-start-grafana-building-from-sources/6144/1 "2018-03-14T10:32:09Z")

</div>

Hello, i succesfully building Grafana from sources and it running using “./bin/grafana-server”, my question is how to make this Grafana auto start when booting and how to make it as services, so i can start it just by using “sudo service grafana-server start” or via systemd.  
I’m still newbie using Linux, so need some help here, thanks.

---

<div class="post-metadata">

**Author:** ![tomsheck](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tomsheck/32/5570_2.png) [@tomsheck](https://community.grafana.com/u/tomsheck)\
**Post date:** [January 29, 2019, 6:30pm UTC](https://community.grafana.com/t/auto-start-grafana-building-from-sources/6144/2 "2019-01-29T18:30:58Z")

</div>

SourceURL:[http://docs.grafana.org/installation/debian/](http://docs.grafana.org/installation/debian/)  
or if you need it for centos/redhar Linux: [http://docs.grafana.org/installation/rpm/](http://docs.grafana.org/installation/rpm/)

Start Grafana by running:

```auto
sudo service grafana-server start

```

This will start the `grafana-server` process as the `grafana` user, which was created during the package installation. The default HTTP port is `3000` and default user and group is `admin` .

Default login and password `admin` / `admin`

To configure the Grafana server to start at boot time:

```auto
sudo update-rc.d grafana-server defaults

```

## Start the server (via systemd)[Â¶](http://docs.grafana.org/installation/debian/#start-the-server-via-systemd)

To start the service using systemd:

```auto
systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server

```

Enable the systemd service so that Grafana starts at boot.

```auto
sudo systemctl enable grafana-server.service

```
