mirror of https://github.com/wulabing/Xray_onekey
新添加依赖启动及开机自启
parent
61b51c8f5a
commit
5aabce2f25
|
@ -170,8 +170,15 @@ dependency_install(){
|
||||||
${INS} -y haveged
|
${INS} -y haveged
|
||||||
judge "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(){
|
basic_optimization(){
|
||||||
# 最大文件打开数
|
# 最大文件打开数
|
||||||
|
|
|
@ -178,6 +178,13 @@ dependency_install(){
|
||||||
${INS} -y haveged
|
${INS} -y haveged
|
||||||
judge "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(){
|
port_alterid_set(){
|
||||||
|
|
Loading…
Reference in New Issue