如何更改odoo默认端口? [英] How do I change the odoo default port?
问题描述
在 Odoo 中,默认端口设置为 8069,我想将其更改为另一个端口.
In Odoo, by default the port is set to 8069, I want to change it to another port.
我已经尝试在 openerp-server.conf 中更改 xmlprc 的值,但即使在重新启动服务器后,新端口也不起作用
I've tried changing in the openerp-server.conf, the value of xmlprc, but even after restating the server, the new port doesn't work
推荐答案
我在以下位置找到了解决方案:如何更改 openerp 服务器默认值
I found the solution in : How to change openerp server default
我们可以更改默认端口 8069 的文件位置是server/openerp/tools/config.py";文件.
The location of the file were we can change the default port 8069 is "server/openerp/tools/config.py" file.
我按照前面提到的链接中的说明进行操作,但在将 xmlprc_port 更改为server/openerp-server.conf"中的新值之前,我仍然无法使用新端口打开 Odoo.重新启动服务器后,它工作正常.
I followed the instruction in the link mentioned before, but I still couldn't open Odoo with the new port until I changed the xmlprc_port to the new value in "server/openerp-server.conf". After I restarted the server, it worked fine.
(来自@danidee 的评论)
(from comment by @danidee)
您还可以通过使用 odoo 启动来动态更改端口
you can also change the port on the fly by starting odoo with
odoo.py --xmlrpc-port=8000
(仅以 8000 为例).
(just using 8000 as an example).
这篇关于如何更改odoo默认端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!