Skip to content

Commit

Permalink
Merge pull request #793 from daixiang0/centos-support
Browse files Browse the repository at this point in the history
Document centos dep
  • Loading branch information
rfratto authored Jul 23, 2019
2 parents cb7c8f6 + 01a0762 commit 2d44486
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ $ go build ./cmd/promtail
```

On Linux, promtail requires the systemd headers to be installed for
Journal support. Promtail can be built with Journal support on Ubuntu
with the following commands:
Journal support.

With Journal support on Ubuntu, run with the following commands:

```bash
$ sudo apt install -y libsystemd-dev
$ go build ./cmd/promtail
```

With Journal support on CentOS, run with the following commands:

```bash
$ sudo apt install libsystemd-dev
$ sudo yum install -y systemd-devel
$ go build ./cmd/promtail
```

Expand Down

0 comments on commit 2d44486

Please sign in to comment.