- 官方參考文件 Installing dependencies
- 安裝 PostgreSQL 及管理工具 pgadmin3 ,相關內容可參考此網站
sudo apt-get install postgresql postgresql-contrib 安裝PostgreSQL伺服器
sudo apt-get install postgresql-client 安裝PostgreSQL客戶端
sudo apt-get install postgresql-server-dev-all
假設你要安裝psycopg2(PostgreSQL資料庫的Python介面卡),你需要安裝PostgreSQL的開發檔案。 sudo apt-get install pgadmin3 視窗版的管理程式
- 依官方的建議建立PostgreSQL的使用者,同Ubuntu的登入帳號
- Because the role login is the same as your unix login unix sockets can be use without a password (因同Ubuntu的登入帳號,所以不需密碼,設定完之後Odoo預設此帳號登入,所以不同於以往要去改openerp.conf)
sudo su - postgres -c "createuser -s $USER"