Exception: error, not support this platform, only support centos/redhat, suse, ubuntu.
•技术分享
98 2
通过查看 comm/check.py文件,发现报错代码块的具体内容如下:
def installByYum(server):
if isCentos():
result = doCmdIgnoreException("sudo yum -y install {}".format(server))
if result["status"] != 0:
os.system("sudo yum -y install epel-release")
os.system("sudo yum -y install python-pip")
os.system("pip install requests")
result = doCmd("sudo yum -y install {}".format(server))
elif isSuse():
os.system("sudo zypper install -y {}".format(server))
elif isUbuntu():
os.system("sudo apt-get install -y {}".format(server))
else:
raise Exception("error,not support this platform,only support centos,suse,ubuntu.")
return
版权属于:戏人看戏博客网
本文链接:https://day.nb.sb/archives/1344.html
若无注明均为戏人看戏原创,转载请注明出处,感谢您的支持!
改为1就不会执行isCentos()这个函数了,也就默认不检查你机器的系统是什么
NBNBNB