- Liferay Beginner’s Guide
- Robert Chen Sandeep Nair Samir Bhatt
- 258字
- 2021-08-27 12:04:32
Time for action – deploying in GlassFish
You can get the latest community version Liferay GlassFish bundle from the download page of Liferay (http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.6/liferay-portal-glassfish-6.0.6-20110225.zip/download).
Next follow these steps to deploy Liferay with Glassfish:
- Extract the zip file that you downloaded to the
bundles
folder (created earlier). - We will call the extracted folder
LIFERAY_HOME
. - There will be a
tomcat
folder insideLIFERAY_HOME
, which we will refer to asGLASSFISH_HOME
: - By default, when we install GlassFish, a default domain named
domain1
is created. Our Liferay is inside this domain. - So to start Liferay, navigate to
GLASSFISH_HOME/bin
from a command prompt. - Issue the command
asadmin start-domain domain1
. - Wait for the domain to start. After the domain is started, it takes some time to deploy the application for the first time.
- You can check the log at
GLASSFISH_HOME/domains/domain1/logs/server.log
. - You can also navigate to the admin console to see all the web applications that are deployed on the server.
- To access the admin console open a browser and type
http://localhost:4848
. - You can see all the web applications which are deployed by clicking on Applications on the left navigation tree. Wait till you see Liferay-portal in the available application from admin console.
- Open a browser and type
http://localhost:8080
; this will open the Liferay home page. - You can stop the server typing the command
asadmin stop-domain domain1
.
What just happened?
We have deployed Liferay in GlassFish Application Server and seen how to start and stop the GlassFish server using Liferay.
Now we will deploy Liferay in Oracle WebLogic, which is a well-known proprietary application server.
推薦閱讀
- Istio入門與實戰
- 數字道路技術架構與建設指南
- Intel FPGA/CPLD設計(高級篇)
- AMD FPGA設計優化寶典:面向Vivado/SystemVerilog
- 電腦軟硬件維修從入門到精通
- 分布式微服務架構:原理與實戰
- Apple Motion 5 Cookbook
- OUYA Game Development by Example
- Hands-On Artificial Intelligence for Banking
- Istio服務網格技術解析與實踐
- Raspberry Pi Home Automation with Arduino
- UML精粹:標準對象建模語言簡明指南(第3版)
- Corona SDK Mobile Game Development:Beginner's Guide
- 創客電子:Arduino和Raspberry Pi智能制作項目精選
- Learn Qt 5