新添加依赖启动及开机自启

pull/355/head
wulabing 2019-11-28 21:12:51 +08:00
parent 61b51c8f5a
commit 5aabce2f25
2 changed files with 15 additions and 1 deletions

View File

@ -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(){
# 最大文件打开数

View File

@ -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(){