multiple-instance-of-odoo-in-windows.png
Blogger_636320539465153750.jpg
By: Nikhil Krishnan

How to install multiple instance of Odoo on Windows?

Suppose we want more than one Odoo installation on a machine in windows. Let's start with the installation process in windows. Odoo Installation in windows is more easier and quicker when compared with Ubuntu Step by step to Install Odoo v10 on Ubuntu16.04 LTS. We need to install many dependent python packages and PostgreSQL manually in Ubuntu. But in windows server just execute the .exe file. It will install all the components like odoo and PostgreSQL and pre- configured for same server.


To install odoo in windows. First download the .exe file from “ https://nightly.odoo.com/ ”

From ‘Odoo nightly builds’ download your stable odoo.


multiple-instance-of-odoo-in-windows-cybrosys

Download the latest odoo .exe file from exe/ directory:


multiple-instance-of-odoo-in-windows-cybrosys

From the downloads just execute the file and access odoo in your browser.

Go to this link http:// <your_domain_or_IP_address>:8069 and explore the odoo.


multiple-instance-of-odoo-in-windows-cybrosys

How to restart/stop the odoo service in windows: 

For start/stop odoo service, Windows OS provide a Services window to access all the services. From the window we can easily start or stop the service by clicking the buttons.

 

Menu start ? type Services ? search Odoo Server ? Select line and click on restart/start/stop buttons above.


multiple-instance-of-odoo-in-windows-cybrosys

Also from the Run command window, we can search it by Services.msc


multiple-instance-of-odoo-in-windows-cybrosys

Start running multiple instances of odoo on the same machine

Follow these steps or execute the same .exe file once more and do the second step:

1.You have already installed odoo instance successfully, So now you copy the folder of odoo (c: ? Program Files(x86) ? Odoo.10.0) and rename it with a new one.

2.If running two or more instance in a same machine first we change the default port number ( :8069/ )in the .conf. For that find the odoo cofig file(.conf) from c:\Program Files(x86)\Odoo.10.0\server\odoo.conf

And change the port by adding xmlrc_port:8010 (As you like)


multiple-instance-of-odoo-in-windows-cybrosys

3.Create a new windows service for the newly created instance

Run the following command in command prompt:

sc create <service_name> binPath= “c:\Program Files(x86)\Odoo.10.0 – copy\service\win32_service.exe”

** notice that there must be a blank space after the equal sign (binPath=) in the command line

 

sc create
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
A space is required between the equal sign and the value.
type= <own|share|interact|kernel|filesys|rec>
            (default = own)
start= <boot|system|auto|demand|disabled|delayed-auto>
           
 (default = demand)
error= <normal|severe|critical|ignore>
            (default = normal)
binPath= <BinaryPathName to the .exe file>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
            (default = LocalSystem)
DisplayName= <display name>
password= <password>


4.The new service will be created and you can launch it from the windows services.

Open the windows services and search the new odoo service, select it and start it by click the start

 
multiple-instance-of-odoo-in-windows-cybrosys

5.Please note down the start up type of the new services and change it to automatic

right click on the new service and select Properties


multiple-instance-of-odoo-in-windows-cybrosys

From the new wizard change the Start up type to Automatic. Otherwise if we set it as manual, Whenever we restart the system we have to start the service manually.


multiple-instance-of-odoo-in-windows-cybrosys

How to delete the odoo service in windows:

Run the following command in command prompt:

sc delete <service_name>


sc delete
DESCRIPTION:
           
Deletes a service entry from the registry.
           
If the service is running, or another process has an
           
open handle to the service, the service is simply marked
           
for deletion.
USAGE:
           
sc <server> delete [service name]




Comments

0


Leave a comment

 

CONNECT SOCIALLY