Skip to content
Snippets Groups Projects
Commit a15e6610 authored by Xiang Dai's avatar Xiang Dai
Browse files

Document centos dep


- document centos dep
- add `-y` option

Signed-off-by: default avatarXiang Dai <764524258@qq.com>
parent cb7c8f62
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment