[转载]OpenShift试用记(图文)

[转载]OpenShift试用记(图文)

Red Hat的OpenShift,不光全套产品基于RHEL6.3,还有JBoss Enterprise Application Platform 6.0可选。作为Red Hat老用户,笔者在此试了一下OpenShift。

通过网络进行程序提供的服务称之为SaaS(Software as a Service),而将服务器平台或者开发环境作为服务就成为了PaaS(Platform as a Service)。有分析师预计到2015年企业级PaaS的市场销售额将超过30亿美元,这还只是PaaS产品发展的初期阶段…… 对于做系统/设备出身的厂商来说,搞“PaaS/SaaS”不光可以赚钱,还是可以用来赢口碑的。比如Red Hat的OpenShift ,不光全套产品基于最新的RHEL6.3旗舰,还有当家花旦JBoss Enterprise Application Platform 6.0可选……企业的测试人员大可在露出满意微笑之后,再搬回去加入私有云。 作为Red Hat老用户,笔者在此试了一下OpenShift。 一、Web界面探索Openshift 打开:https://openshift.Red Hat.com/,这就是OpenShift的主站。

OpenShift加入更多新元素 满足开发者需求
经过短暂的注册和Email激活之后,登录到系统的后台。首先系统会让你先设定个二级域名,然后就可以添加你的第一个应用了。

OpenShift加入更多新元素 满足开发者需求
Openshift的后台支持各种开发环境。除了比较常见的Java、PHP、Python、Ruby、Perl,还有Node.js等比较新兴的语言。而部署环境,除了红帽自己的JBoss之外,还有Tomcat和Ruby on rails、Zend Server 5.6等第三方平台。当然,如果你需求比较特别,OpenShit也支持“Do-It-Yourself”。 如果现在后台还没有支持你所用的开发语言,框架,中间件什么的,你可以自行创建和编译相关的内容。

OpenShift加入更多新元素 满足开发者需求
当然,让人比较高兴的是,OpenShift在2012年开始,支持经典开源Web程序的一键安装了。比如Drupal、Wordpress、phpbb等等,还有新的程序在不断加入。 我这里简单安装个blog。

OpenShift加入更多新元素 满足开发者需求
系统将会将以下网址的代码集成到你的应用中: http://github.com/openshift/wordpress-example 后台显示所用的PHP、MySQL版本如下: PHP 5.3 MySQL Database 5.1 在经过短暂的等待后,我们就能访问我们的博客了。

OpenShift加入更多新元素 满足开发者需求
二、开发者探索Openshift 对于专业的开发人员,肯定会需要命令行工具,OpenShift也提供了rhc这个小玩意儿。 在Windows上的用户需要先确定机器上已有Rails和Git环境,建议直接安装RailsInstaller这个程序。

OpenShift加入更多新元素 满足开发者需求
然后,你就可以用gem install rhc使用这个工具了。 比如你要建立一个php5.3的应用,你可以执行如下命令。 rhc app create -a?<app_name>-t php-5.3 比如你要建立一个自定义应用,可以执行如下命令。 rhc-create-app -a?<app_name>-t diy-0.1 <app_name>是你所要建立的应用名称。 作为熟悉git的开发人员来说,可以用git检查,上传你的程序。 git流程:取代码 → 每次工作前更新代码到最新版本 → 修改代码 → 提交代码到服务器。

OpenShift加入更多新元素 满足开发者需求
我这里对index.php文件做了修改,上传后更改了首页。

OpenShift加入更多新元素 满足开发者需求
如果你是自定义的php程序,需要MongoDB支持,可以输入如下命令: rhc app cartridge add -a wordpress -c mongodb-2.2

OpenShift加入更多新元素 满足开发者需求
如果需要PHPMyAdmin,可以输入如下命令: rhc app cartridge add -a?<app_name>-c phpmyadmin-3.4 删除应用模块的话也很简单,rhc app cartridge remove -a?<app_name>-c phpmyadmin-3.4即可。 如果不习惯命令行的,可以直接在Web界面操作。 关于OpenShift支持的模块,除了以上我列出的,还有一些在不断增加,大家可以慢慢研究。 三、OpenShift的安全 作为公有云,安全肯定是少不了的。OpenShift支持SSH密钥访问,并支持自定义公钥。

OpenShift加入更多新元素 满足开发者需求
四、OpenShift的价格 在OpenShift上,免费版本叫FreeShift,付费版本叫MegaShift。每个免费用户可以最多创建3个App,共有1.5G内存,3G的硬盘。而其付费版本则是每个月42美元。付费版不光空间更多,并发量更大,还可以享受Red Hat的官方技术支持。

OpenShift加入更多新元素 满足开发者需求
五、对OpenShift的一些评价 Red Hat称,IaaS(基础设施即服务)和PaaS的特定实现既不应该是供应商锁定,也不应该受控于供应商。为了让云计算保持开放和活力,云端的实现应该走向真正的开放,不仅仅是在许可证上,而是也应该在管理方式上。OpenShift Origin将在这方面起一个标杆作用。 OpenShift当前版本的优点:自定义程度高,依靠Git,jenkins,Maven等标准开源部署工具,可以简化应用程序的维护。另外,OpenShift工作人员飞快的更新速度也很值得称道。 缺点:免费的空间稍小,网络对中国用户来说速度有些慢。 注:不管是谁家的开源公有云,在用的朋友都好好珍惜吧。国内的开发者,经历的坎坷实在太多……

63 thoughts on “[转载]OpenShift试用记(图文)

  1. Just desired to state I’m pleased I happened on your site!

  2. I want to express appreciation to you just for bailing me out of this particular scenario. Just after exploring through the world-wide-web and seeing tips which were not beneficial, I thought my life was well over. Being alive without the approaches to the problems you have fixed by means of your entire site is a serious case, and the kind which may have adversely damaged my career if I hadn’t come across the website. Your primary natural talent and kindness in handling almost everything was tremendous. I’m not sure what I would have done if I hadn’t come across such a solution like this. It’s possible to at this moment look forward to my future. Thanks for your time very much for the reliable and effective guide. I will not hesitate to recommend the website to anyone who requires tips on this subject matter.

  3. Thank you so much for giving everyone an extraordinarily wonderful chance to read critical reviews from this blog. It’s usually very beneficial and jam-packed with fun for me personally and my office fellow workers to search your blog on the least thrice weekly to read through the latest things you have. And lastly, I’m usually happy for the special advice you give. Some 1 points in this post are clearly the simplest we have all ever had.

  4. I enjoy you because of all of the labor on this website. Debby really loves carrying out internet research and it’s easy to see why. We all hear all regarding the powerful form you deliver insightful guidance via the website and as well as attract response from visitors on this area of interest then our girl has been starting to learn a great deal. Take advantage of the remaining portion of the new year. You are performing a useful job.

  5. I want to show my appreciation to you for bailing me out of this setting. Right after looking out through the world-wide-web and meeting methods which are not beneficial, I believed my entire life was well over. Living minus the answers to the problems you have resolved through your main short article is a crucial case, as well as ones that might have in a negative way affected my career if I had not encountered your web blog. Your actual know-how and kindness in maneuvering the whole thing was very helpful. I don’t know what I would have done if I hadn’t come across such a point like this. I am able to now relish my future. Thanks for your time so much for your high quality and amazing help. I will not be reluctant to endorse your site to anyone who would like care about this subject matter.

  6. Thanks so much for giving everyone an exceptionally memorable chance to read in detail from this website. It is often very lovely and stuffed with amusement for me and my office colleagues to visit your website at the very least 3 times per week to study the new stuff you have got. And definitely, we are actually fascinated for the exceptional creative ideas served by you. Selected 4 tips in this posting are honestly the most suitable we have all had.

  7. Thank you a lot for giving everyone remarkably superb opportunity to read critical reviews from this web site. It really is very nice and as well , stuffed with a great time for me personally and my office acquaintances to visit your web site at the very least 3 times weekly to read through the latest items you have got. Not to mention, I am certainly impressed with all the wonderful methods you give. Some 4 points on this page are basically the most effective we have ever had.

  8. My husband and i have been so thankful that Ervin managed to round up his analysis through the entire precious recommendations he made while using the weblog. It’s not at all simplistic to just possibly be giving out key points some people could have been making money from. Therefore we grasp we have got you to give thanks to for this. The illustrations you’ve made, the simple website menu, the friendships you can help to create – it’s got everything spectacular, and it’s aiding our son and the family know that this topic is brilliant, which is certainly wonderfully important. Thank you for the whole lot!

  9. I must show some thanks to you for bailing me out of such a difficulty. Because of looking out through the online world and getting tricks which were not productive, I thought my entire life was done. Living minus the solutions to the problems you’ve resolved by way of your main posting is a serious case, and the kind which might have negatively affected my career if I had not noticed your web blog. The knowledge and kindness in handling a lot of things was tremendous. I’m not sure what I would have done if I hadn’t come upon such a thing like this. It’s possible to at this time look forward to my future. Thanks so much for the reliable and sensible help. I won’t be reluctant to refer the blog to any person who desires guide on this situation.

  10. My spouse and i felt ecstatic that Emmanuel could do his survey from your precious recommendations he discovered through your web pages. It’s not at all simplistic to simply always be offering helpful hints which often other people may have been trying to sell. Therefore we keep in mind we have the website owner to appreciate because of that. Those illustrations you made, the straightforward web site menu, the friendships you make it possible to engender – it’s got many remarkable, and it’s really facilitating our son in addition to the family recognize that that concept is amusing, which is certainly truly pressing. Thank you for the whole lot!

  11. I precisely wanted to thank you very much again. I do not know the things I could possibly have handled without these strategies discussed by you regarding such a theme. It seemed to be an absolute fearsome scenario for me personally, nevertheless seeing your expert mode you solved that forced me to jump with contentment. Extremely happier for your guidance and thus hope that you are aware of a great job you have been providing teaching the rest through your webblog. Probably you haven’t come across any of us.

  12. Thanks for each of your work on this web site. Debby take interest in working on research and it’s really obvious why. All of us know all of the lively ways you create efficient tactics by means of your blog and as well as foster participation from other individuals on that area of interest then our princess is in fact starting to learn a great deal. Take pleasure in the rest of the new year. You’re doing a tremendous job.

  13. I have to convey my love for your kind-heartedness supporting those people who really need assistance with in this situation. Your very own commitment to getting the solution all through was especially practical and have all the time made regular people much like me to realize their desired goals. Your new useful help and advice denotes a whole lot a person like me and far more to my office workers. Thanks a lot; from everyone of us.

WordPress theme: Kippis 1.15