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