如何为apigee学习优势教程重新设置组织?

时间:2019-05-16 07:55:21

标签: apigee

我正在经历这个apigee tutorial。 第一次调用此script时,它要求提供基本信息来重新分级用户。错误地,我给了错误的组织。

  

正在检查用户配置信息...

     

输入服务器上用户的密码   enterprise.apige
  e.com。

     

密码:
  在api.enterprise.apigee.com上验证凭据   ...
  组织无效!
  请重新运行脚本   使用正确的组织

当我重新运行脚本时,它并没有要求我提供组织。如何将组织设置为正确的名称

1 个答案:

答案 0 :(得分:0)

userconf.sh中有一个trunk\setup文件。

滚动到文件顶部,您将看到类似以下内容的

# there are 2 main cases to handle:
# (a) the user's $HOME/.learn-edge.rc file exists,
# in which case we just dot it in; or
# (b) it doesn't exist, in which case we prompt
# for the values and write out to the config file.

Apigee将所有基本信息内容写入$HOME/.learn-edge.rc。只需修改-

export org="youraccount-eval"

设置为正确的值,它将起作用。