首页 > 技术文章 > liferay7.3.5开发学习(二)- 安装(基于Eclipse)

etbird 2021-01-23 03:57 原文

一、环境准备

1、安装JDK1.8

2、liferay运行环境

   liferay-ce-portal-tomcat-7.3.5-ga6-20200930172312275.7z

   下载地址:https://www.liferay.com/zh/downloads-community

 

3、liferay在eclipse上的运行插件

   liferay-ide-updatesite-3.9.1-ga2-202012220519.zip

     下载地址:https://github.com/liferay/liferay-ide/releases/download/3.9.1-ga2/liferay-ide-updatesite-3.9.1-ga2-202012220519.zip

Install Liferay IDE

Latest stable release: 3.9.1 (December 2020)

Supports Eclipse 4.8.0 or greater and Liferay Portal 7.0 and greater.

 

Using an Update site

  1. From the Help menu select Install New Software...
  2. Paste the following URL into this field: https://releases.liferay.com/tools/ide/latest/stable/

  

注意:以上地址国内下载很慢,可以试试github镜像站

          https://hub.fastgit.org/liferay

          https://github.com.cnpmjs.org/

 

安装完毕,重启eclipse!

点击 File->New->Other 会出现liferay项目的创建,如下图:

 

 

 

 4、liferay初始化

 4.1 新建liferay server,如下图:

 4.2 Liferay, Inc.->Liferay 7.x

 

  4.3 选择下载好的liferay运行环境的解压文件(即之前下载的liferay-ce-portal-tomcat-7.3.5-ga6-20200930172312275.7z),我这里解压到了E:\liferay\portal目录下

 4.4 点击Finish,如下图:

 4.5 右键liferay服务器,选择debug,启动liferay server:

 

 控制台输出成功消息:

 4.6 在浏览器地址栏输入http://localhost:8080,出现如下界面

 

 4.7 修改语言与时区

 4.8 修改为mysql数据库(我这里用的是mysql 5.7)

 4.9 点击“完成配置”,出现如下提示:

5.0 重启liferay server

 

 

 再次访问http://localhost:8080

 

二、项目搭建

未完待续... 

推荐阅读