阿里云效Flow 添加自有主机安装Python2.7失败解决方案

在添加自由主机时需执行提供的一段shell脚本,需要安装Python2.7
image.png

但安装Python2.7一直失败,解决方案如下

安装 Python 3.10.4

Python3.10.4 安装教程 Centos系统

把Python 3.10.4 创建软链 为 Python

ln -s /usr/local/python3/bin/python3 /usr/local/bin/python

上传修改后的 production-install.sh脚本

自行解压

production-install.zip

原理:注释远程shell脚本中的检测Python版本函数

image.png

修改Shell命令

  • 把执行远程的Shell 修改为 执行本地 (sh production-install.sh)
  • 替换命令参数保持不变(需使用云效生成新的参数,不可使用下方参数)
#修改前命令
bash  <(curl http://agent-install-default.oss-cn-hangzhou.aliyuncs.com/production-install.sh) 'http://devops.aliyuncs.com/api/getSnByRegion?regionId=bcxxxdd-4e587234fdb9&sign=xxxD&aliyunRegion=default&timestamp=1659943738170&scope=flow' http://agent-install-default.oss-cn-hangzhou.aliyuncs.com/production-agent.tgz http://devops.aliyuncs.com/api/verifySnAndRegionId?sign=GadQslxxx3D%3D bcae3f19-9xxxb9 1659943738170 default'http://devops.aliyuncs.com/api/getSnByRegion?regionId=bcaexxxd-4e587234fdb9&sign=V3s4%2F4Jsgi3RnIFB8d9JXg%3D%3D&aliyunRegion=default&timestamp=1659943738170&scope=flow' http://agent-install-default.oss-cn-hangzhou.aliyuncs.com/production-agent.tgz http://devops.aliyuncs.com/api/verifySnAndRegionId?sign=GadQsl40bgeCrJKvO3Udqw%3D%3D bcae3f1xxx 1659943738170 default

#修改后命令
sh production-install.sh 'http://devops.aliyuncs.com/api/getSnByRegion?regionId=bcxxxdd-4e587234fdb9&sign=xxxD&aliyunRegion=default&timestamp=1659943738170&scope=flow' http://agent-install-default.oss-cn-hangzhou.aliyuncs.com/production-agent.tgz http://devops.aliyuncs.com/api/verifySnAndRegionId?sign=GadQslxxx3D%3D bcae3f19-9xxxb9 1659943738170 default'http://devops.aliyuncs.com/api/getSnByRegion?regionId=bcaexxxd-4e587234fdb9&sign=V3s4%2F4Jsgi3RnIFB8d9JXg%3D%3D&aliyunRegion=default&timestamp=1659943738170&scope=flow' http://agent-install-default.oss-cn-hangzhou.aliyuncs.com/production-agent.tgz http://devops.aliyuncs.com/api/verifySnAndRegionId?sign=GadQsl40bgeCrJKvO3Udqw%3D%3D bcae3f1xxx 1659943738170 default

成功安装既主机添加成功

image.png

image.png

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值