rhc setup - 无法连接到服务器

时间:2015-05-15 11:33:45

标签: openshift-client-tools

我正在Windows上安装客户端工具。

我成功完成了命令 - > gem install rhc

下一步是 - > rhc setup

我使用的是默认服务器,但收到以下错误:

C:\>rhc setup --debug
DEBUG: Using config file Y:/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
DEBUG: Running server_stage

If you have your own OpenShift server, you can specify it now. Just hit enter to

use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com|

You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api

Unable to connect to the server (getaddrinfo: No such host is known.
(https://openshift.redhat.com:443)). Check that you have correctly specified
your OpenShift server 'https://openshift.redhat.com/broker/rest/api'.

Ruby版本:1.9.3p551

请注意:我支持代理。

2 个答案:

答案 0 :(得分:3)

关闭Apache,XAMP和WAMP等所有服务器。

->rehit the command in cmd 'rhc setup'.
->It ask for personal server or hostname simply press ENTER for default.
->then it ask for 'openshift login'

答案 1 :(得分:2)

经过大量的RnD,我解决了代理问题。

在运行' rhc setup'。

之前设置代理
set HTTP_PROXY=http://username:password@proxyserverIp:port