上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:
- Extract the zip file that you downloaded to the folder called
bundles
. - We will call the extracted folder
LIFERAY_HOME
. - There will be a
tomcat
folder insideLIFERAY_HOME
which we will refer to asTOMCAT_HOME
. - Navigate to
TOMCAT_HOME/bin
and double-click onstartup.bat
. - Your server should start up properly and you should see the console as shown in the following screenshot:
- 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.