官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 丽江市| 五华县| 泸州市| 三门县| 新邵县| 新绛县| 万年县| 沂南县| 横峰县| 扎赉特旗| 东乌珠穆沁旗| 龙陵县| 酒泉市| 文水县| 海兴县| 清水县| 梓潼县| 涟水县| 汉沽区| 日喀则市| 灵山县| 东兴市| 资溪县| 焦作市| 方正县| 屯昌县| 恩施市| 宜春市| 镇宁| 黑水县| 大连市| 东兴市| 顺平县| 聂拉木县| 宜兰市| 樟树市| 灵璧县| 彭阳县| 博湖县| 黄龙县| 潮州市|