Project: Grafana (Observability and Analysis / Observability)
File: start-restart-grafana.md

aliases: ../installation/restart-grafana/ ./restart-grafana/ description: How to start the Grafana server labels: products: enterprise oss menuTitle: Start Grafana title: Start the Grafana server weight: 300 This topic includes instructions for starting the Grafana server. For certain configuration changes, you might have to restart the Grafana server for them to take effect. The following instructions start the `grafana-server` process as the `grafana` user, which was created during the package installation. If you installed with the APT repository or `.deb` package, then you can start the server using `systemd` or `init.d`. If you installed a binary `.tar.gz` file, then you execute the binary. The following subsections describe three methods of starting and restarting the Grafana server: with systemd, initd, or by directly running the binary. You should follow only one set of instructions, depending on how your machine is configured. Complete the following steps to start the Grafana server using systemd and verify that it is running. To start the service, run the following commands: ```bash sudo systemctl daemon-reload sudo systemctl start grafana-server sudo systemctl status grafana-server ``` To verify that the service is running, run the following command: ``` sudo systemctl status grafana-server ``` To configure the Grafana server to start at boot, run the following command: ```bash sudo systemctl enable grafana-server.service ``` {{< docs/shared lookup="systemd/bind-net-capabilities.md" source="grafana" version="<GRAFANA VERSION>" >}} To restart the Grafana server, run the following commands: ```bash sudo systemctl restart grafana-server ``` {{% admonition type="note" %}} SUSE or openSUSE users might need to start the server with the systemd method, then use the init.d method to configure Grafana to start at boot. {{% /admonition %}} Complete the following steps to start the Grafana server using init.d and verify that it is running: To start the Grafana server, run the following commands: ```bash sudo service grafana-server start sudo service grafana-server status ``` To verify that the service is running, run the following command: ``` sudo service grafana-server status ``` To configure the Grafana server to start at boot, run the following command: ```bash sudo update-rc.d grafana-server defaults ``` To restart the Grafana server, run the following commands: ```bash sudo service grafana-server restart ``` The `grafana` binary .tar.gz needs the working directory to be the root install directory where the binary and the `public` folder are

To start the Grafana server, run the following command: ```bash ./bin/grafana server ``` To restart the Grafana service, use the `docker restart` command. `docker restart grafana` Alternatively, you can use the `docker compose restart` command to restart Grafana. For more information, refer to . Configure your `docker-compose.yml` file. For example: ```bash version: "3.8" services: grafana: image: grafana/grafana:latest container_name: grafana restart: unless-stopped environment: TERM=linux GFINSTALLPLUGINS=grafana-clock-panel,grafana-polystat-panel ports: '3000:3000' volumes: 'grafana_storage:/var/lib/grafana' volumes: grafana_storage: {} ``` Start the Grafana server: `docker compose up -d` This starts the Grafana server container in detached mode along with the two plugins specified in the YAML file. To restart the running container, use this command: `docker compose restart grafana` Complete the following steps to start the Grafana server on Windows: Execute `grafana.exe server`; the `grafana` binary is located in the `bin` directory. We recommend that you run `grafana.exe server` from the command line. If you want to run Grafana as a Windows service, you can download . To run Grafana, open your browser and go to the Grafana port (http://localhost:3000/ is default). > Note: The default Grafana port is `3000`. This port might require extra permissions on Windows. If it does not appear in the default port, you can try changing to a different port. To change the port, complete the following steps: a. In the `conf` directory, copy `sample.ini` to `custom.ini`. > Note: You should edit `custom.ini`, never `defaults.ini`. b. Edit `custom.ini` and uncomment the `http_port` configuration option (`;` is the comment character in ini files) and change it to something similar to `8080`, which should not require extra Windows privileges. To restart the Grafana server, complete the following steps: Open the Services app. Right-click on the Grafana service. In the context menu, click Restart. Restart methods differ depending on whether you installed Grafana using Homebrew or as standalone macOS binaries. To start Grafana using , run the following start command: ```bash brew services start grafana ``` Use the restart command: ```bash brew services restart grafana ``` To restart Grafana: Open a terminal and go to the directory where you copied the install setup files. Run the command: ```bash ./bin/grafana server ``` After the Grafana server is up and running, consider taking the next steps: Refer to to learn how to build your first dashboard. Refer to to learn about how you can customize your environment.