openshift rhc

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: [email protected]
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

时间: 2024-10-29 19:11:06

openshift rhc的相关文章

openshift上安装nginx反向代理(失败记录)

1.在本地安装openshift rhc(Rails集成ruby) 2.在openshift注册账号,记录下ssh 3.进入本地"Command Prompt with Ruby and Rails" rhc app create mysite diy-0.1 rhc app show -a mysite 4.使用putty,ssh连接mysite(ssh @mysite.rhcloud.com) 5.安装nginx和pcre插件 cd $OPENSHIFT_TMP_DIR wget 

安装openshift客户端工具 rhc

安装ruby: $ sudo apt-get install ruby-full 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: libruby1.9.1 libruby1.9.1-dbg libtcltk-ruby1.9.1 libyaml-0-2 ri1.9.1 ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full 建议安装的软件包: graphviz ruby

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

最近写了一个微信的翻译机器人.用户只要关注该微信号,发送英文的消息,就能收到中文翻译的回复.后台是用Node.js写的,托管在OpenShift的Paas平台上.翻译过程实际上是调用微软的Bing translation API做的,代码中用到了alexu84的bing-translate和JacksonTian的wechat这两个npm模块.下面把做的过程详细说一下. 1. 微信公众号开发 首先是要到https://mp.weixin.qq.com 申请一个公众号,并申请成为开发者.目前个人只

在openshift上创建django应用

python 3.3 + django 1.7 一.创建新应用 $ rhc app create -a mynewapp -t python-3.3 二.在新建的目录里添加git库 $ cd mynewapp $ git remote add upstream -m master git://github.com/lrivallain/openshift-django1.7-py3.git $ git pull -s recursive -X theirs upstream master 三.设

OpenShift Redhat 搭建NodeJS环境

https://openshift.redhat.com/ OpenShift 是 redhat 公司推出的一个 PaaS 云计算应用平台,开发者可在上面构建.测试.部署和运行应用程序,它支持 Java, Ruby, Node.js, Python, PHP, Perl 等众多语言环境和开发框架,并且支持 MySQL, PostgreSQL, MongoDB 等数据库服务.最重要的是,它的整个体系都是开源的,这和 IaaS 开源云计算软件 OpenStack 一样,对于拥有硬件资源而希望部署云的

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

一.前因后果 以前为了搞微信的公众号,在新浪sae那里申请了一个服务器,一开始还挺好的 ,有免费的云豆送,但是一直运行应用也要消费云豆,搞得云豆也所剩无几了.作为一名屌丝,日常吃土,就单纯想玩一玩微信的公众号,而且反正也没什么人,花钱开一个阿里云这样的服务器好像有点不值,就想看看有没有免费的平台给我耍耍. 很遗憾在国内几乎没有,却意外发现国外openshift挺适合我这种屌丝的,而且小应用访问速度并不慢.但免费的东西,有限制,大家都懂.怎么样?想办法干他一炮! 二.安装openshift客户端

如何在openshift上diy部署spring-boot并在本地用eclipse开发

昨天折腾了一天在openshift上diy支持spring-boot的环境,于是想终结一下也是给需要的朋友一个参考. 这篇文章中主要适用在openshift上部署了application后,在本地用eclipse继续开发的case,如果已经有一个现成的proj,只是需要部署上去的话,请参考本人的git 上的代码(https://github.com/RxCAI/openshift-diy-spring-boot-sample)这个sample原作者是kolorobot ,因为我在开始尝试的时候发

OPENSHIFT MYSQL使用Navicat远程连接

1.安装OpenShift的一个叫RHC的远程管理客户端:https://developers.openshift.com/en/getting-started-windows.html 注意ruby在安装时,务必选择1.9.3版本 2.在本地命令行中执行命令:rhc port-forward 应用名 如:rhc port-forward myappname 执行完之后不要关闭命令行, 这时候使用Navicat工具就可以连接了

新版OpenShift空间申请使用教程-安装WordPress,Mysql及绑定域名,文件管理

OpenShift空间是Red Hat的平台即服务的云计算平台(PaaS),自成立以来就为大家提供免费空间服务,深受到国内外用户的欢迎.虽然全世界的免费云空间商从2010年开始就如雨后春笋般地出现,但是真正能够从激烈的竞争环境中生存下来的也就是那几个实力雄厚的公司的产品. Amazon EC2.Google Compute Engine.Windows Azure是我们熟知的亚马逊.谷歌和微软三家网络巨头公司云计算服务产品,都为我们提供的空间和VPS主机的试用服务,但是很遗憾的就是这三家公司的云