|
|
@ -42,6 +42,10 @@ Install_openresty() |
|
|
|
else |
|
|
|
else |
|
|
|
cpuCore="1" |
|
|
|
cpuCore="1" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$cpuCore" -gt "1" ];then |
|
|
|
|
|
|
|
cpuCore=`echo "$cpuCore" | awk '{printf("%.2f",($1)*0.8)}' | awk -F '.' '{print $1}'` |
|
|
|
|
|
|
|
fi |
|
|
|
# ----- cpu end ------ |
|
|
|
# ----- cpu end ------ |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p ${openrestyDir} |
|
|
|
mkdir -p ${openrestyDir} |
|
|
@ -80,6 +84,7 @@ Install_openresty() |
|
|
|
#初始化 |
|
|
|
#初始化 |
|
|
|
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start |
|
|
|
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start |
|
|
|
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install |
|
|
|
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install |
|
|
|
|
|
|
|
rm -rf $openrestyDir |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo '安装完成' > $install_tmp |
|
|
|
echo '安装完成' > $install_tmp |
|
|
|
} |
|
|
|
} |
|
|
|