From 2818958d3a892ab42af5e29322c9c1cb072aa721 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Tue, 24 Dec 2019 16:48:41 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b04c509..bc5d89c 100644 --- a/install.sh +++ b/install.sh @@ -170,12 +170,19 @@ dependency_install(){ ${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus fi - ${INS} -y haveged + ${INS} -y install rng-tools + judge "rng-tools 安装" + + ${INS} -y install haveged judge "haveged 安装" + sed -i -r '/^HRNGDEVICE/d;/#HRNGDEVICE=\/dev\/null/a HRNGDEVICE=/dev/urandom' /etc/default/rng-tools + if [[ "${ID}" == "centos" ]];then + systemctl start rngd && systemctl enable rngd systemctl start haveged && systemctl enable haveged else + systemctl start rng-tools && systemctl enable rng-tools systemctl start haveged && systemctl enable haveged fi judge "nginx 编译依赖安装"