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

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.

主站蜘蛛池模板: 屯门区| 营口市| 三门峡市| 抚州市| 万山特区| 永济市| 新竹县| 阿坝| 洛扎县| 平罗县| 金阳县| 台东市| 宜宾县| 安塞县| 深泽县| 南康市| 保靖县| 广德县| 吐鲁番市| 广德县| 青岛市| 清丰县| 兴宁市| 白沙| 嘉鱼县| 当涂县| 铁力市| 吉隆县| 资源县| 咸丰县| 女性| 彝良县| 精河县| 毕节市| 邹城市| 湖口县| 化隆| 南陵县| 成都市| 莆田市| 河东区|