コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
51268 ビュー
How to connect Odoo with Postgresql.
Odoo running in one machine, Postgresql running in another machine.
My requirement is i have to run odoo and postgresql in two different machines.
アバター
破棄
最善の回答

Hi,
Please read this blog, where the same criteria is explained in detail:- Professional Odoo 11 Deployment Guid



In the postgres:



Then update the odoo conf file with this db host and port.

Thanks

アバター
破棄
最善の回答

You just need to pass "db_host=IP_of_DB_INSTANCE" & "db_port=DATABASE_PORT (by default it is 5432)"

Now, you need to change the postgres config file which will allow the IP of Odoo Instance to connect postgres.

Open: /etc/postgresql/9.5/main/pg_hba.conf and make changes in following section:

# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all IP_of_Odoo_INSTANCE/24 trust

Save the file and restart the postgres server (sudo service postgres  restart)

アバター
破棄
関連投稿 返信 ビュー 活動
2
7月 20
7170
0
3月 19
4
1
11月 24
5879
4
11月 19
2706
1
2月 19
8295