Windows下安装多个OpenErp实例
-
OpenErp更新了几个版本,手头上在测试6.1,很快就出个6.2dev-xxxx,要保留原来的版本,又在同一台机上测试新的版本,怎么办呢?
以下几个步骤简单解决:
1、安装6.1 All-in-on,测试可以正常使用,相关端口为80xx
2、安装6.2dev-xxx,修改6.2对应目录下的conf配置文件,把80xx修改为70xx也好,90xx也好
3、打开注册表,转到[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\openerp-server-6.1]
把这个节点导出62.reg
4、修改62.reg,把内容修为为<br />Windows Registry Editor Version 5.00<br /><br />[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\openerp-server-6.2]<br />"Type"=dword:00000010<br />"Start"=dword:00000003<br />"ErrorControl"=dword:00000001<br />"ImagePath"=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,\<br /> 6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,4f,00,70,00,65,00,6e,00,45,\<br /> 00,52,00,50,00,20,00,36,00,2e,00,31,00,5c,00,53,00,65,00,72,00,76,00,65,00,\<br /> 72,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,5c,00,4f,00,70,00,65,\<br /> 00,6e,00,45,00,52,00,50,00,53,00,65,00,72,00,76,00,65,00,72,00,53,00,65,00,\<br /> 72,00,76,00,69,00,63,00,65,00,2e,00,65,00,78,00,65,00,22,00,00,00<br />"DisplayName"="OpenERP Server 6.2"<br />"ObjectName"="LocalSystem"<br />"Description"="OpenERP Server 6.2 service"<br /><br />
5、打开注册表,转到[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\openerp-server-6.2]
修改ImagePath为"【6.2版本所在目录】\Server\service\OpenERPServerService.exe"
保存,重启
6、到服务(services.msc)可以看到两个OpenErp的服务,喜欢哪个就打开哪个,端口为之前设置的对应端口