Liferay Beginner’s Guide
上QQ阅读APP看书,第一时间看更新

Time for action – deploying on Tomcat

To start with, you will need to download the latest community version of the Liferay Tomcat bundle from the download page of Liferay (http://www.liferay.com/downloads/liferay-portal/available-releases). At the time of writing, the latest Liferay bundle that is available is Liferay 6.0.6. Next, follow these steps to configure Tomcat with Liferay:

  1. Extract the zip file that you downloaded to the folder called bundles.
  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 TOMCAT_HOME.
    Time for action – deploying on Tomcat
  4. Navigate to TOMCAT_HOME/bin and double-click on startup.bat.
  5. Your server should start up properly and you should see the console as shown in the following screenshot:
    Time for action – deploying on Tomcat
  6. Open a browser and type http://localhost:8080; this will open the Liferay home page.

What just happened?

We have got Liferay up and running in Tomcat. We will be using this configuration for the rest of the chapters.

Now, we will see how to deploy Liferay on an Enterprise Application server, such as JBoss.