liferay_云中的Liferay
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。 当然,您需要注册一个帐户。
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,请按照以下步骤操作:
bees create <your-applicationname>
bees create <your-applicationname>
bees deploy -a <your-username>/<your-applicationname>
bees deploy -a <your-username>/<your-applicationname>
– Your application is now up and running!
–您的应用程序现在已启动并正在运行!
结论 (Conclusion)
翻译自: https://www.sitepoint.com/liferay-in-the-cloud/
liferay
liferay_云中的Liferay相关推荐
- liferay_问答– Liferay关于Arkadiko的RaymondAugé
liferay 将现有的Java Enterprise应用程序移植到OSGi有哪些困难? RA:OSGi具有"纯粹的" java架构. 换句话说,它的严格性使得解决低级Java ...
- 估计点云中的曲面法线
曲面法线是几何表面的重要属性,并且在诸如计算机图形应用的许多领域中被大量使用,应用在矫正光源产生的阴影和其他的视觉效果. 给定几何表面,通常用垂直于曲面的向量来推断曲面上某一点法线的方向是很简单的.然 ...
- 计算机鹅点云,CVPR 2020 | 用于点云中3D对象检测的图神经网络
论文原文:Point-GNN: Graph Neural Network for 3D Object Detection in a Point Cloud 论文地址:https://www.amine ...
- IBM首家发布了公有云中的裸机Kubernetes
\ 看新闻很累?看技术新闻更累?试试下载InfoQ手机客户端,每天上下班路上听新闻,有趣还有料! \ \\ IBM首家向工业界提供了裸机Kubernetes托管服务.使用该服务,开发人员和数据科学团队 ...
- 在云中进行灾难恢复的五种有效方式
云中灾难恢复的五种方法可以帮助企业改进防止数据丢失和停机并从中恢复,同时可以确保满足服务等级协议(SLA). 事实表明,云中灾难恢复的五种方法可以帮助企业改进防止数据丢失和停机并从中恢复,同时可以确保 ...
- Liferay标签(一):liferay-ui:search-container(1)
2019独角兽企业重金招聘Python工程师标准>>> Liferay自带的标签有很多,现在就来说说用的比较频繁的标签--liferay-ui:search-container,在页 ...
- CVPR 2021 | RfD-Net: 从点云中重建三维物体实例
点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 基于点云的场景理解是目前特别具有挑战性的任务,本文作者提出了一种从三维场景点云中重建高精度物体网格的学 ...
- 浅谈三维点云中的几何语义
前言: 本文介绍了点云中不可忽视的一项重要属性--几何语义,并尝试根据自己的理解和实践经验对其进行一些归纳总结,可能有些地方有理解有误,请大家抱着批判的态度学习. 正文: 关于点云的悠久历史本文不过多 ...
- 一种可移除点云中动态目标的鲁棒方法
点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 摘要 大家好,今天为大家带来的文章是Robust Method for Removing Dynami ...
最新文章
- mysql 主主同步失败_Mysql主主同步失败后的恢复
- python requests 10041报错_Python-Requests1-批量登录获取uid
- templates(0.1)
- rvm 安装后的补充工作:source $HOME/.profile
- 将COleDateTime类型数据转换成char *数据
- Windows - 修复所有快捷方式的打开方式
- AT指令集及常用指令
- 如何在微信公众号图文中添加附件
- HTML如何画一条分割线_div之间设置间隔
- 国家互联网信息办公室公布《互联网新闻信息服务单位内容管理从业人员管理办法》【软件网每日新闻播报│第10-31期】
- 达人评测锐龙r7 6800u和r7 5800u差距 r76800u和r75800u对比
- 二次型化标准形的三种方法
- 阿里云ECS问题大全【转自阿里云社区】
- Windows搭建FTP服务器,JAVA实现读写功能
- 多线程【全面学习 图文精讲】
- CSDN云IDE 初体验
- 高中数学必修2:平面解析几何之直线与圆、圆与圆的位置关系
- 强烈推荐!关于IE浏览器下页面的刷新问题~
- 计算机绘图二维三维实用教程,计算机绘图二维三维实用教程教学课件作者王建勇第二章.ppt...
- Embedding词嵌入层的原理