- Liferay Beginner’s Guide
- Robert Chen Sandeep Nair Samir Bhatt
- 247字
- 2021-08-27 12:04:34
Time for action – deploying Liferay
Next, follow these steps to configure Liferay with Tomcat:
- Create a folder called
Liferay
, which we will refer to asLIFERAY_HOME
from now on. - Extract the Tomcat zip file you have downloaded earlier to
LIFERAY_HOME
. You should see a folder namedapache-tomcat-6.0.33
insideLIFERAY_HOME
. From now on this folder will be referred to asTOMCAT_HOME
. - Create a folder called
ext
insideTOMCAT_HOME/lib
. Extract the Portal Dependencies jars zip that you downloaded earlier to thisext
folder. - Copy the jars like
mysql.jar
,jta.jar
, andmail.jar
inside theTOMCAT_HOME/lib
folder, which has been provided to you in the code folder of this chapter. - Create a file called
ROOT.xml
insideTOMCAT_HOME/conf/Catalina/localhost
. Add the following content insideROOT.xml
:<Context path=””> </Context>
- Open the file
TOMCAT_HOME/conf/catalina.properties
and find a property calledcommon.loader
. Append${catalina.home}/lib/ext/*.jar
at the end as follows:common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext/*.jar
- Delete the contents inside
TOMCAT_HOME/webapps/ROOT
folder and extract the contents of Liferay Portal war that you downloaded before. - Open
catalina.bat
fromTOMCAT_HOME/bin
using a text editor. Find a line which starts withrem ----- Execute
. - Below that line add the following to increase heap space and save the file:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=128m -Dfile.encoding=UTF8 -Duser.timezone=GMT
- Start the server by double-clicking
startup.bat
insideTOMCAT_HOME/bin
. - The server will start up and the default Liferay home page will be opened automatically in the browser.
What just happened?
You have just seen how to deploy Liferay in an existing Tomcat server.
Next let's see how we can configure a production database with Liferay.
推薦閱讀
- 筆記本電腦使用、維護與故障排除實戰
- Istio入門與實戰
- 基于Proteus和Keil的C51程序設計項目教程(第2版):理論、仿真、實踐相融合
- SDL Game Development
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- 現代辦公設備使用與維護
- 平衡掌控者:游戲數值經濟設計
- 電腦軟硬件維修從入門到精通
- 計算機組裝與維護(第3版)
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- Intel Edison智能硬件開發指南:基于Yocto Project
- 基于PROTEUS的電路設計、仿真與制板
- 電腦組裝與維護即時通
- The Deep Learning with PyTorch Workshop
- 嵌入式系統設計大學教程(第2版)