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

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.

主站蜘蛛池模板: 安徽省| 南江县| 陕西省| 永州市| 水富县| 乐昌市| 石城县| 新沂市| 彭水| 越西县| 焦作市| 读书| 云浮市| 即墨市| 阜城县| 化州市| 应用必备| 庆阳市| 巫山县| 临洮县| 抚顺县| 利辛县| 玉门市| 嘉荫县| 钦州市| 怀集县| 永胜县| 舟曲县| 额尔古纳市| 汽车| 论坛| 保德县| 左云县| 苏尼特左旗| 郁南县| 靖西县| 岳阳县| 沾益县| 田东县| 获嘉县| 勃利县|