官术网_书友最值得收藏!

  • 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:

  1. Extract the zip file that you downloaded to the bundles folder (created earlier).
  2. We will call the extracted folder LIFERAY_HOME.
  3. There will be a tomcat folder inside LIFERAY_HOME, which we will refer to as GLASSFISH_HOME:
    Time for action – deploying in GlassFish
  4. By default, when we install GlassFish, a default domain named domain1 is created. Our Liferay is inside this domain.
  5. So to start Liferay, navigate to GLASSFISH_HOME/bin from a command prompt.
  6. Issue the command asadmin start-domain domain1.
  7. Wait for the domain to start. After the domain is started, it takes some time to deploy the application for the first time.
    Time for action – deploying in GlassFish
  8. You can check the log at GLASSFISH_HOME/domains/domain1/logs/server.log.
  9. You can also navigate to the admin console to see all the web applications that are deployed on the server.
  10. To access the admin console open a browser and type http://localhost:4848.
  11. 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.
    Time for action – deploying in GlassFish
  12. Open a browser and type http://localhost:8080; this will open the Liferay home page.
  13. 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.

主站蜘蛛池模板: 合川市| 中西区| 利津县| 嵊泗县| 广丰县| 新乐市| 融水| 太原市| 航空| 汤阴县| 偏关县| 镇康县| 长汀县| 宁南县| 榆林市| 绥棱县| 石首市| 璧山县| 合水县| 阿合奇县| 绥中县| 德清县| 阿坝县| 景德镇市| 南岸区| 青神县| 民丰县| 邵阳县| 蒙城县| 鄂托克前旗| 葫芦岛市| 叶城县| 黔西县| 页游| 蓬安县| 昌平区| 沂源县| 威远县| 余干县| 曲阜市| 博客|