1. 虚拟环境的使用
https://blog.csdn.net/u013379032/article/details/131556231
2. linux安装postgresql
到官网,然后选择自己的服务器配置,他会给你一段代码,执行即可 # Install the repository RPM: sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm # Disable the built-in PostgreSQL module: sudo dnf -qy module disable postgresql # Install PostgreSQL: sudo dnf install -y postgresql12-server # Optionally initialize the database and enable automatic start: sudo /usr/pgsql-12/bin/postgresql-12-setup initdb sudo systemctl enable postgresql-12 sudo systemctl start postgresql-12
3. odoo配置
在odoo/conf中新建openserver.conf文件,并写入: [options] db_name = odoo12_test db_host = 127.0.0.1 db_port = 5432 db_user = odoo12 db_password = odoo12 addons_path = /home/odoo12/odoo/addons
标签:12,postgresql,odoo12,sudo,db,学习,odoo From: https://www.cnblogs.com/JackShi/p/18279040