云片php
什么是Redhat OpenShift (What is Redhat OpenShift)
OpenShift is the Platform as a Service (PaaS) offered by Redhat. It offers an environment for you to deploy, scale and manage applications while you as a developer can focus on building applications. OpenShift has built in support for PHP, Ruby, Java, node.js, Perl and can be extended with support of cartridge to host clojure and other platforms.
OpenShift是Redhat提供的平台即服务(PaaS)。 它为您提供了一个部署,扩展和管理应用程序的环境,而您作为开发人员可以专注于构建应用程序。 OpenShift内置了对PHP,Ruby,Java,node.js,Perl的支持,并且可以扩展支持墨盒以托管Clojure和其他平台。
它是如何工作的? (How does it work?)
For a developer you can create application through web console or through command line. I would talk with reference of command line as it will be in line with our next steps. For command line interaction you will need gems for GitHub and the openshift gem named “rhc” * . After successful installation you can login with “rhc setup” command. Applications can be created with “rhc app create” command and appropriate arguments based on type of applications you are creating. You can modify the created app locally with your favourite IDE. You can add services needed for your application which are called “cartridge”. For example for adding MongoDB you can use command “rhc app cartridge add -a twt -c mongodb-2.0”. Now your application is literally a “git push” away!
对于开发人员,您可以通过Web控制台或命令行创建应用程序。 我将参考命令行,因为它与我们的后续步骤一致。 对于命令行交互,您将需要GitHub的gem和名为“ rhc” *的openshift宝石。 成功安装后,您可以使用“ rhc setup”命令登录。 可以使用“ rhc app create”命令和基于要创建的应用程序类型的适当参数来创建应用程序。 您可以使用自己喜欢的IDE在本地修改创建的应用。 您可以添加应用程序所需的服务,称为“墨盒”。 例如,添加MongoDB时,可以使用命令“ rhc appette add -a twt -c mongodb-2.0”。 现在,您的应用程序简直是“ git push”!
幕后发生了什么 (What goes on behind the scenes)
Redhat is a pioneer and leader in open source and without doubt they use their robust set of technology to power openShift. Red Hat Enterprise Linux (RHEL) forms the basic foundation of OpenShift and SELinux is used for enhanced security and separation between multiple applications. By default OpenShift scales automatically so you don’t have to worry when load on application increases. Users can choose to scale manually if they wish to. For the architecture enthusiasts this link explains the architecture in detail.
Redhat是开源的先驱和领导者,毫无疑问,他们使用其强大的技术集为openShift提供动力。 红帽企业Linux(RHEL)构成了OpenShift的基本基础,而SELinux用于增强安全性和分离多个应用程序。 默认情况下,OpenShift自动缩放,因此您不必担心应用程序负载增加。 用户可以根据需要选择手动缩放。 对于体系结构爱好者, 此链接详细说明了体系结构。
使用并扩展! (Use and extend!)
OpenShift comes with support for Java, Ruby, Perl, PHP etc. But don’t worry if you have something that is not supported out of the box. Any binary that can run on a RHEL 6.2 X64 and can talk HTTP can be configured by creating a cartridge yourself as explained here. OpenShift looks a promising platform with power of Linux and open source expertise of Redhat!
OpenShift附带了对Java,Ruby,Perl,PHP等的支持。但是,如果您有一些不被支持的东西,请不要担心。 可以在RHEL 6.2 X64运行,并且可以跟HTTP任何二进制可以通过创建一个墨盒自己作为解释的配置在这里 。 OpenShift看起来具有Linux的强大功能和Redhat的开源专业知识,是一个有前途的平台!
翻译自: https://www.sitepoint.com/cloud-slice-redhat-openshift/
云片php