官术网_书友最值得收藏!

Changing the listening port

The --http-port=<port> command option (or just -p <port>) allows us to change the listening port of a server instance from the default 8069. This can be used to run more than one instance at the same time, on the same machine.

The --http-port server option was introduced in Odoo 11.0 and replaces the old --xmlrpc-port option, used in previous versions.

Let's try this out. Open two terminal windows. On the first, run this:

$ ~/odoo-dev/odoo/odoo-bin --http-port=8070

Run the following command on the second terminal:

$ ~/odoo-dev/odoo/odoo-bin --http-port=8071

There you go, two Odoo instances on the same server listening on different ports! The two instances can use the same or different databases, depending on the configuration parameters used. And the two could be running the same or different versions of Odoo.

主站蜘蛛池模板: 西华县| 辽阳县| 棋牌| 博兴县| 宁乡县| 山阴县| 永丰县| 聂荣县| 桐城市| 曲靖市| 皋兰县| 鹿泉市| 广汉市| 巫山县| 南陵县| 延长县| 广饶县| 开阳县| 涞源县| 恩平市| 清原| 涟源市| 瓦房店市| 怀化市| 昔阳县| 柘荣县| 嘉黎县| 新兴县| 镇宁| 陇南市| 新建县| 平原县| 彝良县| 泾阳县| 谢通门县| 仪陇县| 布尔津县| 饶阳县| 潞城市| 科技| 周至县|