Running multiple Liferay instances on single machine
Running multiple Liferay instances on a single machine
To run several Liferay instances on a single machine you need to change ports - for Tomcat and for Felix Gogo Shell.
Change Tomcat’s ports
Find Tomcat’s server.xml file:
{PROJECT}/bundles/tomcat-9.0.17/conf/server.xml
and change the following ports:
In this example each port is increased by 1 (8005 became 8006, 8080 -> 8081, 8009 -> 8010).
For Liferay 6.2 and previous this change was enough to run 2 Liferays simultaneously.
For DXP we need to change Felix Gogo Shell port also.
Change Felix Gogo Shell port
Modify file:
{PROJECT}/bundles/portal-setup-wizard.properties
Add the following line:
module.framework.properties.osgi.console=11312
(port changed here from default 11311 to 11312).
After starting Liferay up, you can connect to Felix Gogo Shell as:
telnet localhost 11312
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
____________________________
Welcome to Apache Felix Gogo
g!
Comments
Post a Comment