From a15e6610c1e075f822477cdd93464837e9092300 Mon Sep 17 00:00:00 2001 From: Xiang Dai <764524258@qq.com> Date: Mon, 22 Jul 2019 10:16:05 +0800 Subject: [PATCH 1/2] Document centos dep - document centos dep - add `-y` option Signed-off-by: Xiang Dai <764524258@qq.com> --- production/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/production/README.md b/production/README.md index b51f397e4c43..93708a4d5a84 100644 --- a/production/README.md +++ b/production/README.md @@ -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: From 01a0762904b53787316400b66a87fc36b644b85b Mon Sep 17 00:00:00 2001 From: Xiang Dai <764524258@qq.com> Date: Tue, 23 Jul 2019 11:59:12 +0800 Subject: [PATCH 2/2] add missing ` Signed-off-by: Xiang Dai <764524258@qq.com> --- production/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/production/README.md b/production/README.md index 93708a4d5a84..b5967a33c671 100644 --- a/production/README.md +++ b/production/README.md @@ -85,6 +85,7 @@ 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: