Running Multiple Alfresco Server Instances on the same linux machine

February 24
blog author

Appno Blogger

Appnovation Coop

Imagine you need to work on different versions of Alfresco server instances on the same machine. It would be sweet if we could assign each server to a unique IP address without changing the TCP port setting for various services all over the place. It will simplify management of the Alfresco instance. On Linux, it is easier to assign multiple IP addresses to the same NIC (network interface card).

1. For example, "wlan0" interface is not used on my laptop, it will be used for the new IP addresses. On the Ubuntu, sudo vim /etc/network/interfaces (on Fedora, cp /etc/network/interfaces/ifcfg-eth0 to /etc/network/interfaces/ifcfg-eth0:1), add the following lines for two new IP address. auto wlan0:1 iface wlan0:1 inet static address netmask network auto wlan0:2 iface wlan0:2 inet static address netmask network

2. "sudo /etc/init.d/networking restart" will make the above change permanent.

3. Assign the IP above to two Alfresco instances, then edit the configuration accordingly. For example, change and in $ALF_HOME/tomcat/shared/classes/ accordingly.

4. Restart Alfresco server.