From 5aabce2f2551c082b9d84647dfc5daddc63b7cb3 Mon Sep 17 00:00:00 2001 From: wulabing Date: Thu, 28 Nov 2019 21:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=B7=BB=E5=8A=A0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=8A=E5=BC=80=E6=9C=BA=E8=87=AA=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 ++++++++- install_h2.sh | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 78071c9..755ecd7 100644 --- a/install.sh +++ b/install.sh @@ -170,8 +170,15 @@ dependency_install(){ ${INS} -y haveged judge "haveged 安装" - judge "nginx 编译依赖安装" + 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 编译依赖安装" } basic_optimization(){ # 最大文件打开数 diff --git a/install_h2.sh b/install_h2.sh index 13d864b..d599e0e 100644 --- a/install_h2.sh +++ b/install_h2.sh @@ -178,6 +178,13 @@ dependency_install(){ ${INS} -y haveged judge "haveged 安装" + 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 } port_alterid_set(){