-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centos7一键部署失败,当前系统不被支持 #6
Comments
嗯,我稍后会将支持的系统版本更新到文档里面; |
试了一下openEuler22.03-LTS,ice的相关依赖无法获取,安装失败。 |
centos是直接使用Yum安装的,不用编译,你把log.txt文件发给我,[email protected],我看一下 |
不是centos出的问题,是openEuler22.03-LTS(可以看出是基于centos8二开的系统),一些相关依赖无法解决。 `[root@172-30-110-67 opt]# yum install ice-all-runtime ice-all-devel
|
嗯,好的,有问题随时反馈~ |
修改bin/common/common.sh文件中的checkOSVersion函数后,CentOS7环境下部署成功。 |
😄还真是,我改一下 |
下载最新版后,改好配置文件,看日志输出,centos7不支持部署
[root@172-30-110-63 lighthouse-1.1.5]# bin/easy-deploy.sh [root@172-30-110-63 lighthouse-1.1.5]# tail -f bin/log/log.txt Current environment os:CentOS,version:7 The current deployment environment['os':'CentOS','version:':'7'] does not support,process exit!
我翻看了一下发布日志,没有相关描述,查看源码后才发现支持的系统列表。
`checkOSVersion(){
local lsb=$1
local major=$2;
if [[ ! -n $lsb ]] || [[ ! -n $major ]];then
log_info "The current deployment environment does not support,process exit!"
exit -1;
elif [[ ${lsb} == "CentOS" ]] || [[ ${lsb} == "Rocky" ]] || [[ ${lsb} == "Alma" ]] || [[ ${lsb} == "RHEL" ]];then
local supportVersions=("8" "9")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
elif [ ${lsb} == "Debian" ];then
local supportVersions=("10" "11")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
elif [ ${lsb} == "Ubuntu" ];then
local supportVersions=("16.04" "18.04" "20.04" "22.04")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
else
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
}
`
建议将支持列表,整理到readme.md里面。
此外,请问有支持openEuler等国产系统的计划么?
openEuler22.03-LTS(2024-03会EOL,下一个长期支持版应该会广泛使用)
openEuler22.03-LTS应该是基于Centos8改的,基本上rpm包都能通用
但是/etc/*-release里面没有CentOS关键字,我改一下脚本试试能不能兼容安装起来。
The text was updated successfully, but these errors were encountered: