Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3048 Widoki

I have a different odoo server with postgres database, how do I run the service postgresql.service

For notes :

192.x.x.100 Odoo Server

192.x.x.83 Postgres Server


Thanks

Awatar
Odrzuć
Autor Najlepsza odpowiedź

db_host = 192.x.x.83
db_port = 5432
db_user = rdsOdoo
db_password = False
addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo/custom-addons
xmlrpc_port = 8069


This is my configuration file in odoo server, for IP PostgreSQL has been added to configuration file

But if i want to enable the service, the error results

Failed to start odoo.service: Unit postgresql.service not found.


Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can specify the PostgreSQL details in the odoo configuration file, in the db_host specify IP of the postgres server, and specify db_port, db_user and password.

db_host = 192.x.x.83


also make sure the PostgreSQL configuration will accept connection from 192.x.x.100 

Thanks

Awatar
Odrzuć