How can I check the version of a Liferay instance?

£可爱£侵袭症+ 提交于 2019-11-30 06:34:08
Dima

As an administrator, go to:

Control Panel -> Configuration -> Server Administration

The version is in the information banner at the top of the "Resources" tab.

You can also check that information in the console log when starting up the server or checking the the headers of a HTTP request

Jaromir Hamala

Look at class com.liferay.portal.kernel.util.ReleaseInfo located in tomcat/common/lib/portal-kernel.jar. There is a bunch of static methods for this purpose. You will find the following property: static String version.

celias

If you can get the database, which is one:

select * from Release_;

there is a column called buildNumber, it can have a value like 6005 or 5203

The other way, with the apache tomcat startup, you will see in the catalina.out log file: Starting Liferay Portal Community Edition 6.0.5 CE (Bunyan / Build 6005 / August 16, 2010)

You can also check Liferay version Using Chrome Web tools

In the enterprise edition, in addition to the installed package (Dima's answer) you can update Liferay using service packs. Here is how to know what service pack level you have installed:

cd $LIFERAY/patching-tool
./patching-tool.sh info

It will show something like this:

Loading product and patch information...
Product information:
  * installation type: binary
  * build number: 7010
  * service pack version:
    - available SP version: 5
    - installable SP version: 5
  * patching-tool version: 2.0.6
  * time: 2018-01-31 08:37Z
  * plugins: Demo 201802, Space 1-2 Columns 50/50 Limited, Space 50/50 Width Limited, Space Program, Space Program Theme

Currently installed patches: de-30-7010

Available patches: de-22-7010, de-30-7010

Detailed patch list: 
  [ -] de-22-7010 :: Currently not installed; Won't be installed: de-30 contains the fixes included in this one :: Built for LIFERAY
  [*I] de-30-7010 :: Installed; Will be installed. :: Built for LIFERAY

The important line is Currently installed patches: de-30-7010.
Then you know that you have Service Pack 30.

In plugins->build.properties.At bottom line of tht file ,we have a property called lp.version which contains liferay version as lp.version=6.0.5

Hope it helps!!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!