- 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.
推薦閱讀
- 網(wǎng)絡(luò)服務(wù)器配置與管理(第3版)
- 數(shù)字道路技術(shù)架構(gòu)與建設(shè)指南
- Deep Learning with PyTorch
- 計算機(jī)組裝·維護(hù)與故障排除
- Unity 5.x Game Development Blueprints
- Hands-On Machine Learning with C#
- 計算機(jī)組裝維修與外設(shè)配置(高等職業(yè)院校教改示范教材·計算機(jī)系列)
- Building 3D Models with modo 701
- Source SDK Game Development Essentials
- Intel Edison智能硬件開發(fā)指南:基于Yocto Project
- Spring Cloud微服務(wù)和分布式系統(tǒng)實(shí)踐
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- 嵌入式系統(tǒng)原理及應(yīng)用:基于ARM Cortex-M4體系結(jié)構(gòu)
- Building Machine Learning Systems with Python
- Angular 6 by Example