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] 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: