[转载]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工作人员飞快的更新速度也很值得称道。 缺点:免费的空间稍小,网络对中国用户来说速度有些慢。 注:不管是谁家的开源公有云,在用的朋友都好好珍惜吧。国内的开发者,经历的坎坷实在太多……

打赏

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

  1. I and also my guys came checking the great recommendations on your web site and so quickly I got an awful feeling I never thanked the blog owner for those secrets. The boys are actually for this reason stimulated to learn all of them and have now certainly been tapping into them. Appreciate your getting considerably considerate and for making a choice on certain exceptional themes millions of individuals are really desperate to know about. My very own honest apologies for not saying thanks to sooner.

  2. Thank you so much for providing individuals with remarkably nice chance to read in detail from this website. It is often so good and as well , stuffed with amusement for me personally and my office colleagues to visit your web site more than three times in a week to study the latest guidance you have. And lastly, I am just usually fulfilled for the effective hints served by you. Selected 3 ideas in this article are in reality the most suitable we’ve ever had.

  3. My spouse and i felt now satisfied that Raymond could finish up his inquiry out of the precious recommendations he had from your own blog. It is now and again perplexing to just always be giving away information which usually other people might have been selling. And we all keep in mind we need the writer to be grateful to for that. These illustrations you have made, the straightforward site navigation, the friendships you will give support to engender – it’s mostly great, and it’s making our son in addition to our family do think this issue is fun, and that’s tremendously serious. Thank you for the whole lot!

  4. I wanted to compose a quick remark to express gratitude to you for some of the marvelous secrets you are placing on this website. My considerable internet lookup has at the end been honored with good quality facts and strategies to write about with my family. I ‘d express that we visitors actually are very much fortunate to exist in a fine community with very many perfect professionals with helpful tactics. I feel pretty privileged to have encountered your webpage and look forward to plenty of more fun moments reading here. Thanks once again for everything.

  5. I needed to draft you the bit of remark to finally say thank you the moment again about the unique solutions you have provided in this article. It was quite strangely open-handed with people like you to offer easily just what many people would’ve offered as an e-book to help make some money for themselves, mostly given that you could possibly have tried it if you desired. Those inspiring ideas likewise acted to be a great way to fully grasp the rest have the identical dreams just like my very own to figure out great deal more pertaining to this condition. I am sure there are lots of more enjoyable times up front for people who scan your blog post.

  6. Thank you so much for providing individuals with an extraordinarily pleasant opportunity to read from this web site. It really is very lovely plus jam-packed with amusement for me personally and my office mates to search your web site on the least thrice a week to find out the new guides you have. And indeed, I’m just usually fulfilled for the amazing solutions you serve. Some 2 tips on this page are truly the most impressive I’ve had.

  7. Needed to post you that tiny remark to finally give many thanks once again on your unique methods you’ve contributed here. It’s certainly unbelievably open-handed with people like you to present unreservedly just what most of us would have advertised as an ebook to help make some cash for their own end, precisely now that you might well have tried it if you ever wanted. The basics additionally served to be the good way to know that other individuals have the same interest really like mine to see somewhat more regarding this condition. Certainly there are a lot more fun times ahead for individuals that examine your blog post.

  8. I have to convey my affection for your kind-heartedness for folks who absolutely need help with this one area of interest. Your real dedication to passing the message along had become pretty significant and have consistently allowed women just like me to achieve their desired goals. Your new important report means a lot to me and much more to my office colleagues. Best wishes; from all of us.

  9. I enjoy you because of all of the labor on this web site. Kim take interest in conducting investigation and it’s really simple to grasp why. Almost all notice all about the powerful ways you convey effective solutions via the web site and even cause response from some other people on that idea and our own princess is always starting to learn a lot. Enjoy the remaining portion of the year. You’re performing a pretty cool job.

  10. A lot of thanks for your entire labor on this blog. My mom delights in carrying out research and it’s really simple to grasp why. All of us know all regarding the lively tactic you deliver effective secrets via your blog and as well as attract response from visitors on this point then our favorite child is always being taught a great deal. Take advantage of the rest of the new year. You’re the one doing a tremendous job.

  11. I would like to express some thanks to you just for rescuing me from such a incident. Right after searching throughout the the net and meeting methods which were not productive, I thought my entire life was over. Living without the strategies to the issues you’ve fixed as a result of your good review is a serious case, and those which may have adversely affected my entire career if I hadn’t come across your website. That training and kindness in handling a lot of stuff was valuable. I am not sure what I would have done if I had not encountered such a solution like this. I am able to now look forward to my future. Thanks for your time so much for your high quality and sensible guide. I won’t hesitate to refer your web blog to any person who would like guidance about this issue.

  12. I simply needed to appreciate you once more. I do not know the things I would’ve done without those techniques revealed by you regarding that subject. This was a very frightful crisis in my position, however , taking a look at your specialised mode you treated that forced me to leap for fulfillment. Extremely grateful for the support and even have high hopes you realize what an amazing job you’re putting in training the others using your web blog. I am sure you have never come across all of us.

  13. I simply desired to thank you so much all over again. I’m not certain the things that I would have followed without the type of opinions shown by you about this situation. Previously it was a very troublesome scenario in my circumstances, nevertheless witnessing this expert style you solved it made me to leap for fulfillment. Extremely happy for this support and as well , have high hopes you comprehend what a powerful job you are always providing educating many people through the use of your webblog. Most likely you’ve never come across all of us.

  14. 不错的文章,内容文笔犀利.禁止此消息:nolinkok@163.com

  15. 好文章,内容文章雅致.禁止此消息:nolinkok@163.com

  16. 好文章,内容才高八斗.禁止此消息:nolinkok@163.com

  17. 好文章,内容惜墨如金.禁止此消息:nolinkok@163.com

  18. 不错的文章,内容无懈可击.禁止此消息:nolinkok@163.com

  19. 好文章,内容无懈可击.禁止此消息:nolinkok@163.com

  20. 好文章,内容才高八斗.禁止此消息:nolinkok@163.com

  21. 不错的文章,内容学富五车.禁止此消息:nolinkok@163.com

  22. 好文章,内容欢风华丽.禁止此消息:nolinkok@163.com

  23. 好文章,内容义正词严.禁止此消息:nolinkok@163.com

  24. 不错的文章,内容欢风华丽.禁止此消息:nolinkok@163.com

  25. 不错的文章,内容才高八斗.禁止此消息:nolinkok@163.com

  26. 好文章,内容一气呵成.禁止此消息:nolinkok@163.com

  27. 好文章,内容层次清晰.禁止此消息:nolinkok@163.com

  28. 好文章,内容点石成金.禁止此消息:nolinkok@163.com

  29. 不错的文章,内容文笔犀利.禁止此消息:nolinkok@163.com

  30. 好文章,内容出神入化.禁止此消息:nolinkok@163.com

  31. 不错的文章,内容文章雅致.禁止此消息:nolinkok@163.com

  32. 好文章,内容惊心动魄.禁止此消息:nolinkok@163.com

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Help

Copyright © 2009-2018 沐雨听风与狂言疯语  | Powered by WordPress  | 网站地图  |  访客留言  | 冀ICP备15004690号  |   | WordPress theme: Kippis 1.15

%d 博主赞过: