- Odoo 12 Development Essentials
- Daniel Reis
- 152字
- 2021-07-02 14:18:41
Installing the PostgreSQL database
Odoo needs a PostgreSQL server to work with. The typical development setup is to have PostgreSQL installed in the same machine as Odoo. We still need to install the PostgreSQL database, required to run Odoo:
$ sudo apt update
$ sudo apt install postgresql # Install PostgreSQL
$ sudo su -c "createuser -s $USER" postgres # Create db superuser
The last command creates a PostgreSQL user for the current system user. We need that so that we can create and drop the databases to be used by our Odoo instances.
If you are running Ubuntu inside the WSL, note that system services are not automatically started. This means that you may need to manually start the PostgreSQL service before running any command that needs a database connection, such as createuser or starting an Odoo server. To manually start the PostgreSQL service, run the following: sudo service postgresql start.
推薦閱讀
- InDesign CS6中文版基礎與實例教程
- Word/Excel/PPT 2010入門與提高(超值版)
- 新編Office 2016從入門到精通
- WPS Office 2019 高效辦公
- 輕松學五筆打字
- Word Excel PPT商務辦公從新手到高手(白金全彩版)
- 高效隨身查:PPT2021必學的美化設計應用技巧(視頻教學版)
- Word-Excel-PowerPoint 2007三合一辦公應用實戰從入門到精通(超值版)
- AutoCAD 2018中文版室內裝潢設計從入門到精通
- 普通WPS Word規范排版公文格式
- 新編Word/Excel/PPT 2016從入門到精通
- 新手易學:Word 2010+Excel 2010+PowerPoint 2010三合一
- Java EE 8 Cookbook
- 新編電腦辦公(Windows 7 + Office 2016版)從入門到精通
- 金融精英Word實操手冊:世界知名公司這樣制作研究報告