prepare脚本是用python写的;
安装前,我手动修改了服务器中python的默认使用版本为3.5,但是prepare不兼容3.5版本,需降级还原使用2.7,重新执行安装./install.sh
就可以了
[Step 2]: preparing environment …
Generated and saved secret to file: /data/secretkey
Generated configuration file: ./common/config/nginx/nginx.conf
Generated configuration file: ./common/config/adminserver/env
Generated configuration file: ./common/config/ui/env
Traceback (most recent call last):
File “./prepare
”, line 406, in
[storage_provider_name + ‘:’] + map(string.strip, storage_provider_config.split(",")))
AttributeError: module 'string' has no attribute 'strip'
修改
root@server02:/usr/bin# mv python python3.5.bak
root@server02:/usr/bin# mv python2.7.bak python
root@server02:/usr/bin# python --version
Python 2.7.12