liferay

为什么在云中使用Liferay? (Why Liferay in the cloud?)

Today, everybody want things to be done in the cloud. Running your applications in the cloud relieves you from having to manage and scale the hardware. Management of databases, application servers, continuous integration etc is done by the provider and lets you focus on your core business. One thing you don’t find so easily, is how to get a Liferay portal up and running in the cloud. Liferay itself doesn’t offer a cloud service, so we’ll have to construct our own, using the existing providers. It is of course possible to spawn a machine with an IaaS provider and install everything from scratch to get Liferay in cloud – but our goal is here to utilize a PaaS platform to deploy Liferay and make it easier for you.

今天,每个人都希望事情在云中完成。 在云中运行应用程序使您不必管理和扩展硬件。 数据库,应用程序服务器,持续集成等的管理由提供商完成,使您可以专注于核心业务。 您不容易找到的一件事是如何在云中启动并运行Liferay门户。 Liferay本身不提供云服务,因此我们必须使用现有的提供商来构建自己的云服务。 当然,可以使用IaaS提供程序生成机器并从头开始安装所有内容,以将Liferay放入云中–但是我们的目标是利用PaaS平台来部署Liferay,并使您更轻松。

For this tutorial, I have used Cloudbees. There are 2 ways to get started: the ‘regular’ way, and the quick way which is made possible by the recent addition of  ‘ClickStarts’. The latter is obviously the easiest, but it’s good to see where we come from. It helps in understanding the underlying process.

在本教程中,我使用了Cloudbees 。 有2种入门方法:“常规”方法,以及最近添加的“ ClickStarts”使快速方法成为可能。 后者显然是最简单的,但是很高兴看到我们来自哪里。 它有助于理解底层过程。

在开始之前 (Before we get started)

Before we start, we should install the Cloudbees SDK. You can find it here. Dowload the zip-file, and extract it. Once that’s done, set the BEES_HOME environment variable, and point to the folder in which you unzipped the SDK. Add BEES_HOME to your PATH environment variable. You can check your installation by opening a command window and type ‘bees help’. The first time, Cloudbees SDK will attempt to download a configuration file from its servers. If none is found, it will ask your Cloudbees login and password to create one. Once that’s done, the necessary plugins are downloaded, and you’re good to go.

在开始之前,我们应该安装Cloudbees SDK。 你可以在这里找到它。 下载zip文件,然后解压缩。 完成后,设置BEES_HOME环境变量,并指向解压缩SDK的文件夹。 将BEES_HOME添加到您的PATH环境变量中。 您可以通过打开命令窗口并键入“ bees help”来检查安装。 第一次,Cloudbees SDK将尝试从其服务器下载配置文件。 如果没有找到,它将要求您的Cloudbees登录名和密码创建一个。 一旦完成,就下载了必要的插件,您就可以开始了。

Note: if you’re behind a proxy, you can edit the bees.bat/bees.sh file and change the JAVA_OPTS:

注意:如果您位于代理之后,则可以编辑bees.bat / bees.sh文件并更改JAVA_OPTS:

JAVA_OPTS=-Dbees.home=%BEES_HOME% -Dhttp.proxyHost=<your proxy host> -Dhttp.proxyPort=<your proxy port> -Xmx256m

JAVA_OPTS=-Dbees.home=%BEES_HOME% -Dhttp.proxyHost=<your proxy host> -Dhttp.proxyPort=<your proxy port> -Xmx256m

“常规”方式 (The ‘regular’ way)

Follow these easy steps to setup Liferay in the cloud, using the Cloudbees platform. Of course, you’ll need to sign up for an account.

按照以下简单步骤,使用Cloudbees平台在云中设置Liferay。 当然,您需要注册一个帐户。

– Create Database (LiferayTryout)
–创建数据库(LiferayTryout)
Liferay Tomcat bundleLiferay Tomcat捆绑包
– Unzip it
–解压缩
Unbundled Liferay捆绑的Liferay
tomcat-7.0.27/lib/ext folder into the unbundled WAR’s tomcat-7.0.27 / lib / ext文件夹中的所有文件复制到解除捆绑的WAR的WEB-INF/lib folder (14 items, although ccpp.jar is double and can be skipped). In windows, you can use 7Zip to browse the war-file, and drag and drop the jar files into the right folderWEB-INF / lib文件夹中 (14个项目,尽管ccpp.jar为两倍,可以跳过)。 在Windows中,您可以使用7Zip浏览war文件,并将jar文件拖放到正确的文件夹中
portal-ext.properties file in the unbundled WAR’s WEB-INF / classes文件夹中创建一个WEB-INF/classes folder (again, you can create it outside the war, and drag and drop it in afterwards)portal-ext.properties文件(同样,您可以在战争之外创建它,然后将其拖放到其中)
portal-ext.properties, to have following properties:portal-ext.properties ,使其具有以下属性:

portal-ext.propertiesliferay.home=/tmp/liferay-home-eb jdbc.default.driverClassName= com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://yourDatabaseServer:3306/liferay-username?useUnicode=true&characterEncoding=UTF-8& useFastDateParsing=false jdbc.default.username=liferay-username jdbc.default.password=liferay-password

portal-ext.propertiesliferay.home = / tmp / liferay-home-eb jdbc.default.driverClassName = com.mysql.jdbc.Driver jdbc.default.url = jdbc:mysql:// yourDatabaseServer:3306 / liferay-username?useUnicode = true&characterEncoding = UTF-8&useFastDateParsing = false jdbc.default.username = liferay-用户名jdbc.default.password = liferay-password

– You can find your database server in the “Manage” tab of your Cloudbees database – Create App (JVM Web Application WAR) – Liferay requires quite a lot of memory. The free edition of Cloudbees comes with 128MB, which is probably not enough. You’ll have to switch to the paid (medium or large) edition – Upload the new WAR file using the Cloudbees SDK. This will take a while, since it’s pretty big. Subsequent deploys will be faster, as the SDK uses a delta system to only deploy the changes. To deploy, use this command:

–您可以在Cloudbees数据库的“管理”选项卡中找到数据库服务器–创建应用程序(JVM Web应用程序WAR)– Liferay需要大量内存。 免费版本的Cloudbees随附128MB,可能还不够。 您必须切换到付费(中型或大型)版本–使用Cloudbees SDK上传新的WAR文件。 这需要一段时间,因为它很大。 由于SDK使用增量系统仅部署更改,因此后续的部署将更快。 要部署,请使用以下命令:

       bees app:deploy liferay-portal-6.1.1-ce-ga2.war jvmPermSize=256

bees app:deploy liferay-portal-6.1.1-ce-ga2.war jvmPermSize=256

– Notice we have set the jvmPermSize parameter. – The SDK will now ask you which application you want to deploy. Enter the name, and watch it progress. – Your liferay instance is now up and running in the cloud!

–注意,我们已经设置了jvmPermSize参数。 –现在,SDK将询问您要部署哪个应用程序。 输入名称,然后观察进度。 –您的liferay实例现在已在云中启动并运行!

使用Liferay ClickStart的快速方法 (The quick way, using Liferay ClickStart)

Clickstarts are project templates, a bit like Maven archetypes, if you’ve worked with them. There is a Liferay Clickstart template, which ben be found here: https://github.com/CloudBees-community/liferay-clickstart

Clickstarts是项目模板,如果您使用过的话,则有点像Maven原型。 有一个Liferay Clickstart模板,可在这里找到: https : //github.com/CloudBees-community/liferay-clickstart

To use this Clickstart, and have our own Liferay in the cloud, follow these steps:

要使用此Clickstart,并在云中拥有我们自己的Liferay,请按照以下步骤操作:

– Click the button “Deploy instantly on Cloudbees”
–单击按钮“立即在Cloudbees上部署”
– Choose name
- 选择名字
– Source repository (GIT) is initialized, Jenkins is configured to automatically build the code, a web application is created, DB created and configured
–初始化源存储库(GIT),将Jenkins配置为自动生成代码,创建Web应用程序,创建并配置数据库
– Be patient, this can take a while…
–请耐心等待,可能需要一段时间...
– Again, you will have to increase your application memory to 512MB or 1024MB
–同样,您必须将应用程序内存增加到512MB或1024MB
– Now, use the Cloudbees SDK to locally create the app
–现在,使用Cloudbees SDK在本地创建应用

       bees create <your-applicationname>

bees create <your-applicationname>

– Go into the created folder
–进入创建的文件夹
– Change the source code if you want, or immediately upload the application again
–如果需要,请更改源代码,或立即再次上传应用程序

       bees deploy -a <your-username>/<your-applicationname>

bees deploy -a <your-username>/<your-applicationname>

– Your application is now up and running!

–您的应用程序现在已启动并正在运行!

结论 (Conclusion)

As you can see, the ClickStart way is a lot quicker. On top of that, you also have the immediate creation of a source repository (GIT, in this case) and a Jenkins configuration. While the first method requires a lot of effort and some insight, the second one is quick and easy. We demonstrated use of ClickStarts and in process also deployed Liferay to cloud.
如您所见,ClickStart方法要快得多。 最重要的是,您还可以立即创建源存储库(在本例中为GIT)和Jenkins配置。 第一种方法需要大量的精力和洞察力,而第二种方法又快速又容易。 我们演示了ClickStarts的用法,并且在过程中还将Liferay部署到了云中。

翻译自: https://www.sitepoint.com/liferay-in-the-cloud/

liferay

liferay_云中的Liferay相关推荐

  1. liferay_问答– Liferay关于Arkadiko的RaymondAugé

    liferay 将现有的Java Enterprise应用程序移植到OSGi有哪些困难?   RA:OSGi具有"纯粹的" java架构. 换句话说,它的严格性使得解决低级Java ...

  2. 估计点云中的曲面法线

    曲面法线是几何表面的重要属性,并且在诸如计算机图形应用的许多领域中被大量使用,应用在矫正光源产生的阴影和其他的视觉效果. 给定几何表面,通常用垂直于曲面的向量来推断曲面上某一点法线的方向是很简单的.然 ...

  3. 计算机鹅点云,CVPR 2020 | 用于点云中3D对象检测的图神经网络

    论文原文:Point-GNN: Graph Neural Network for 3D Object Detection in a Point Cloud 论文地址:https://www.amine ...

  4. IBM首家发布了公有云中的裸机Kubernetes

    \ 看新闻很累?看技术新闻更累?试试下载InfoQ手机客户端,每天上下班路上听新闻,有趣还有料! \ \\ IBM首家向工业界提供了裸机Kubernetes托管服务.使用该服务,开发人员和数据科学团队 ...

  5. 在云中进行灾难恢复的五种有效方式

    云中灾难恢复的五种方法可以帮助企业改进防止数据丢失和停机并从中恢复,同时可以确保满足服务等级协议(SLA). 事实表明,云中灾难恢复的五种方法可以帮助企业改进防止数据丢失和停机并从中恢复,同时可以确保 ...

  6. Liferay标签(一):liferay-ui:search-container(1)

    2019独角兽企业重金招聘Python工程师标准>>> Liferay自带的标签有很多,现在就来说说用的比较频繁的标签--liferay-ui:search-container,在页 ...

  7. CVPR 2021 | RfD-Net: 从点云中重建三维物体实例

    点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 基于点云的场景理解是目前特别具有挑战性的任务,本文作者提出了一种从三维场景点云中重建高精度物体网格的学 ...

  8. 浅谈三维点云中的几何语义

    前言: 本文介绍了点云中不可忽视的一项重要属性--几何语义,并尝试根据自己的理解和实践经验对其进行一些归纳总结,可能有些地方有理解有误,请大家抱着批判的态度学习. 正文: 关于点云的悠久历史本文不过多 ...

  9. 一种可移除点云中动态目标的鲁棒方法

    点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 摘要 大家好,今天为大家带来的文章是Robust Method for Removing Dynami ...

最新文章

  1. mysql 主主同步失败_Mysql主主同步失败后的恢复
  2. python requests 10041报错_Python-Requests1-批量登录获取uid
  3. templates(0.1)
  4. rvm 安装后的补充工作:source $HOME/.profile
  5. 将COleDateTime类型数据转换成char *数据
  6. Windows - 修复所有快捷方式的打开方式
  7. AT指令集及常用指令
  8. 如何在微信公众号图文中添加附件
  9. HTML如何画一条分割线_div之间设置间隔
  10. 国家互联网信息办公室公布《互联网新闻信息服务单位内容管理从业人员管理办法》【软件网每日新闻播报│第10-31期】
  11. 达人评测锐龙r7 6800u和r7 5800u差距 r76800u和r75800u对比
  12. 二次型化标准形的三种方法
  13. 阿里云ECS问题大全【转自阿里云社区】
  14. Windows搭建FTP服务器,JAVA实现读写功能
  15. 多线程【全面学习 图文精讲】
  16. CSDN云IDE 初体验
  17. 高中数学必修2:平面解析几何之直线与圆、圆与圆的位置关系
  18. 强烈推荐!关于IE浏览器下页面的刷新问题~
  19. 计算机绘图二维三维实用教程,计算机绘图二维三维实用教程教学课件作者王建勇第二章.ppt...
  20. Embedding词嵌入层的原理

热门文章

  1. 麒麟操作系统软件更新灾难连篇之一:中文输入法消失
  2. Sunday算法介绍及Java实现
  3. 【网络模拟】Network Emulator for Windows Toolkit
  4. 古堡探险_判断5个数都不同的简单方式及暴力破解的简单方式
  5. SmartDraw 2010 破解成功
  6. 使用WebMagic爬虫框架爬取暴走漫画
  7. 自我感悟--思想与行动的结合
  8. 信创办公--基于WPS的Word最佳实践系列(图片的基本处理)
  9. C++ Builder XE 透明窗体特效处理实例
  10. First-chance exception at xxx RPC 服务器不可用