Installation and use of Liferay

Source: Internet
Author: User
Tags zip tomcat

Installation and use of Liferay

The latest version of the current Liferay is Liferay portal 7.0.5, download address: http://sourceforge.net/projects/lportal/;

Here is the download Liferay and Tomcat6 binding version, and with jdk1.6, download after the need to do the following several steps can easily run up Liferay.

1, after downloading it is best to find a folder dedicated to do Liferay work space, because later a lot of file downloads, so easy to manage.

Unzip Liferay-portal-tomcat-6.0.5.zip

First decompression Liferay-portal-tomcat-6.0.5.zip, after decompression its directory structure is as follows:

liferay-portal-tomcat-6.0.5/liferay-portal-6.0.5/data/

Directory Decentralization is a liferay example (7coogs), a database Hsql script, and a document produced by Lucene.

liferay-portal-tomcat-6.0.5/liferay-portal-6.0.5/tomcat-6.0.26/

This is the Tomcat's home directory, the structure inside is the same as the general Tomcat, in the WebApps directory is the Liferay Portal Application War package, where root is the most important, you will find web-inf/ There are no class files in the classes because they are made into jar packs and placed under Web-inf/lib, so the effect is the same.

2, Liferay with the Hsql database, if you want to change other databases, you can

Liferay-portal-tomcat-6.0.5/liferay-portal-6.0.5/tomcat-6.0.26/webapps/root/web-inf/classes

Next, create a new Portal-ext.properties file with the following (use MySQL as an example here):

#

# MySQL

#

Jdbc.default.driverclassname=com.mysql.jdbc.driver

jdbc.default.url=jdbc:mysql://localhost/lportal?useunicode=true&characterencoding=utf-8& Usefastdateparsing=false

Jdbc.default.username=root

jdbc.default.password=1234

Other database configurations can see:

Http://www.liferay.com/community/wiki/-/wiki/Main/Database+Portal+Properties

The above configuration is only the Liferay 6.0 method, and the previous version is still different, the specific version of the database configuration can be

Reference: Http://www.liferay.com/community/wiki/-/wiki/Main/Database+Configuration

3, in the Liferay-portal-tomcat-6.0.5/liferay-portal-6.0.5/tomcat-6.0.26/bin directory execution./startup.bat,

Tomcat has been started at this point and will normally start in about 5 minutes. Automatically opens in the browser when the boot is complete

http://localhost:8080, so you can start visiting the Liferay portal.

Shutdown is performed./shutdown.sh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.