Skip to content

Commit

Permalink
Document centos dep
Browse files Browse the repository at this point in the history
- document centos dep
- add `-y` option

Signed-off-by: Xiang Dai <764524258@qq.com>
  • Loading branch information
daixiang0 committed Jul 22, 2019
1 parent cb7c8f6 commit a15e661
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,21 @@ $ 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 libsystemd-dev
$ sudo apt install -y libsystemd-dev
$ go build ./cmd/promtail
```

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

```bash
$ sudo yum install -y systemd-devel
$ go build ./cmd/promtail
Otherwise, to build promtail without Journal support, run `go build`
with CGO disabled:
Expand Down

0 comments on commit a15e661

Please sign in to comment.