Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\HXL>ruby -v
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

C:\Users\HXL>gem install rhc
ERROR: Could not find a valid gem 'rhc' (>= 0) in any repository

C:\Users\HXL>gem sources
*** CURRENT SOURCES ***

C:\Users\HXL>gem sources --add http://rubygems.org/
http://rubygems.org/ added to sources

C:\Users\HXL>gem install rhc
Fetching: net-ssh-2.9.2.gem (100%)
Fetching: net-scp-1.2.1.gem (100%)
Fetching: net-ssh-gateway-1.2.0.gem (100%)
Fetching: net-ssh-multi-1.2.1.gem (100%)
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Fetching: highline-1.6.21.gem (100%)
Fetching: commander-4.2.1.gem (100%)
Fetching: httpclient-2.8.0.gem (100%)
Fetching: open4-1.3.4.gem (100%)
Fetching: rhc-1.38.4.gem (100%)
===========================================================================

If this is your first time installing the RHC tools, please run 'rhc setup'

===========================================================================
Successfully installed net-ssh-2.9.2
Successfully installed net-scp-1.2.1
Successfully installed net-ssh-gateway-1.2.0
Successfully installed net-ssh-multi-1.2.1
Successfully installed archive-tar-minitar-0.5.2
Successfully installed highline-1.6.21
Successfully installed commander-4.2.1
Successfully installed httpclient-2.8.0
Successfully installed open4-1.3.4
Successfully installed rhc-1.38.4
10 gems installed
Installing ri documentation for net-ssh-2.9.2...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing ri documentation for net-scp-1.2.1...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing ri documentation for net-ssh-gateway-1.2.0...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing ri documentation for net-ssh-multi-1.2.1...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for highline-1.6.21...
Installing ri documentation for commander-4.2.1...
Installing ri documentation for httpclient-2.8.0...
Installing ri documentation for open4-1.3.4...
Installing ri documentation for rhc-1.38.4...
Installing RDoc documentation for net-ssh-2.9.2...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing RDoc documentation for net-scp-1.2.1...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing RDoc documentation for net-ssh-gateway-1.2.0...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing RDoc documentation for net-ssh-multi-1.2.1...
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for LICENSE.txt, skipping
Installing RDoc documentation for archive-tar-minitar-0.5.2...
Installing RDoc documentation for highline-1.6.21...
Installing RDoc documentation for commander-4.2.1...
Installing RDoc documentation for httpclient-2.8.0...
Installing RDoc documentation for open4-1.3.4...
Installing RDoc documentation for rhc-1.38.4...

C:\Users\HXL>rhc setup
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.

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'.

Login to openshift.redhat.com: 739272238@qq.com
Password: **********

OpenShift can create and store a token on disk which allows to you to access the

server without using your password. The key is stored in your home directory and

should be kept secret. You can delete the key at any time by running 'rhc
logout'.
Generate a token now? (yes|no) yes
Generating an authorization token for this client ... lasts about 1 month

Saving configuration to C:\Users\HXL\.openshift\express.conf ... done

No SSH keys were found. We will generate a pair of keys for you.

Created: C:/Users/HXL/.ssh/id_rsa.pub

Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)
yes

default (type: ssh-rsa)
-----------------------
Fingerprint: 9b:e3:f0:2e:9a:f2:65:66:a1:15:35:4d:cd:66:d8:72

739272238huxiaol (type: ssh-rsa)
--------------------------------
Fingerprint: e1:78:bf:4d:b3:6b:b6:4f:52:46:70:62:3b:16:2b:18

You can enter a name for your key, or leave it blank to use the default name.
Using the same name as an existing key will overwrite the old key.

Provide a name for this key: |739272238HXLPC|

Uploading key '739272238HXLPC' ... done

In order to fully interact with OpenShift you will need to install and configure

a git client if you have not already done so. Documentation for installing other

tools you will need for OpenShift can be found at
https://www.openshift.com/developers/install-the-client-tools

We recommend these free applications:

* Git for Windows - a basic git command line and GUI client
http://msysgit.github.io/
* TortoiseGit - git client that integrates into the file explorer
http://code.google.com/p/tortoisegit/
Checking common problems

Your private SSH key file should be set as readable only to yourself. Please
run 'chmod 600 C:\Users\HXL\.ssh\id_rsa'

Checking for a domain ... mymono

Checking for applications ... found 2

leshui http://leshui-mymono.rhcloud.com/
xiaolin http://xiaolin-mymono.rhcloud.com/

You are using 2 of 3 total gears
The following gear sizes are available to you: small

Your client tools are now configured.

C:\Users\HXL>rhc port-forward
You must specify an application with -a, or run this command from within Git
directory cloned from OpenShift.
Usage: rhc port-forward <application>
Pass '--help' to see the full list of options

C:\Users\HXL>rhc port-forward xiaolin
Checking available ports ... done
Forwarding ports ...

To connect to a service running on OpenShift, use the Local address

Service Local OpenShift
------- -------------- ---- -----------------
java 127.0.0.1:8080 => 127.5.72.129:8080
mysql 127.0.0.1:3306 => 127.5.72.130:3306

Press CTRL-C to terminate port forwarding

C:\Users\Administrator>rhc show-app xiaolin --gears quota

openshift rhc的更多相关文章

  1. OpenShitf 使用教程

    OpenShitf https://www.openshift.com 1.注册openshitf账号 https://www.openshift.com/app/account/new 2.gett ...

  2. 安装openshift客户端工具 rhc

    安装ruby: $ sudo apt-get install ruby-full 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: ...

  3. Linux Mono OpenShift Cloud9 rhc

    OpenShift Mono Asp.net MVC4 MySql 1..Net4.0+Mvc4,不要使用太新的.Net4.5.1+Mvc5. 2.MySql数据库:MySql.Data.Dll 从官 ...

  4. 调戏OpenShift:一个免费能干的云平台

    一.前因后果 以前为了搞微信的公众号,在新浪sae那里申请了一个服务器,一开始还挺好的 ,有免费的云豆送,但是一直运行应用也要消费云豆,搞得云豆也所剩无几了.作为一名屌丝,日常吃土,就单纯想玩一玩微信 ...

  5. 利用OpenShift托管Node.js Web服务进行微信公众号开发

    最近写了一个微信的翻译机器人.用户只要关注该公众号,发送英文的消息,就能收到中文翻译的回复.有兴趣的读者可以扫描下面的二维码关注该公众号,尝试发送英文单词试试看.(有时候第一次发送单词会收到“该公众号 ...

  6. 解决由OpenShift自带的APC加速器造成的代码无法及时生效的问题

    如果你在使用你的Openshift时出现了这样的问题,那就说明APC加速器导致了此故障 1.上传后的代码运行效果没有变化 2.Wordpress翻来覆去自己重复升级一个版本(←Wordpress在自嗨 ...

  7. OpenShift

    一步一脚印 停停走走,回头看看 博客园 首页 新随笔 联系 订阅 管理 随笔 - 24  文章 - 8  评论 - 2 调戏OpenShift:一个免费能干的云平台   一.前因后果 以前为了搞微信的 ...

  8. 绑定GoDaddy域名到OpenShift应用

    一.申请GoDaddy域名 二.托管OpenShift应用 三.绑定www.mydomain.com 四.重定向mydomin.com到www.mydomain.com 五.It's go time ...

  9. openshift云计算平台diy模式安装Python2.7+Flask

    主要翻译了链接1)的教程,加上一些个人研究,步骤如下: 1) 在openshift.redhat.com申请账号,安装git for windows,然后安装gem install rhc,这些比较容 ...

随机推荐

  1. dll和ocx的简单理解

    一.dll dll就是打包一些程序或者算法,根据我的理解分个类 1.算法的打包 比如打包C/C++的一些纯代码算法,计算平均值,极值,标准差....,只需要向外提供接口和入口参数,外部即可轻松调用 2 ...

  2. CSS布局总结及实际应用中产生的问题

    布局初步 所谓布局,其实是指的将网页内容以一定的方式放到合适的位置上去. 布局的基本步骤: 1, 将“当前版面”以视觉上界限明显的方式进行划分若干个区块,划分只用两种方式: a) 上下结构:此时,只要 ...

  3. loj 诗歌

    链接 链接 思路 好久之前的考试题了吧,之前貌似抄的题解 现在理解了怕忘了,就写个题解记录一下吧,题目还是不错的 枚举中间点j \[H_{i}-H_{j}=H_{j}-H_{k}\] \[H_{k}+ ...

  4. C#中的编译开关

    c#不支持宏定义,只支持编译开关. ======================================我想加上#define xxx就编译a代码,否则编译b代码,像这样的:#if xxxa ...

  5. LOJ#2170. 「POI2011」木棍 Sticks

    题目链接 题意就是给你一堆线段,然后线段有长度和颜色,让你选三条组成一个三角形,这三条线段颜色不能一样 题解: 做法:贪心 首先按照长度给这些线段排序一遍 然后贪心的去选,对于已经选出来同种颜色的,就 ...

  6. [BZOJ 2200][Usaco2011 Jan]道路和航线 spfa+SLF优化

    Description Farmer John正在一个新的销售区域对他的牛奶销售方案进行调查.他想把牛奶送到T个城镇 (1 <= T <= 25,000),编号为1T.这些城镇之间通过R条 ...

  7. 初识C++继承

    先是自己凭借自己在课堂上的记忆打了一遍.自然出了错误. //编译错误 #include <iostream> #include <cstdlib> using namespac ...

  8. UVa 1152 和为0的4个值(二分查找)

    https://vjudge.net/problem/UVA-1152 题意:给定4个n元素集合A,B,C,D,要求分别从中选取一个元素a,b,c,d,使得a+b+c+d=0.问有多少种取法. 思路: ...

  9. Linux command line exercises for NGS data processing

    by Umer Zeeshan Ijaz The purpose of this tutorial is to introduce students to the frequently used to ...

  10. Cglib方法实现动态代理

    除了使用JDK方式产生动态代理外,Java还给我们提供了另外一种产生动态代理的方法,那就是使用cglib. cglib是这样实现动态代理的: · ①.针对类来实现代理 · ②对指定目标类产生一个子类 ...