📅  最后修改于: 2023-12-03 15:03:21.276000             🧑  作者: Mango
Welcome to this tutorial on how to install Odoo 13 using Shell-Bash!
Before we start installing Odoo 13, you need to ensure that your system meets the following prerequisites:
sudo apt update
sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx
sudo -u postgres psql
CREATE DATABASE odoo13db;
CREATE USER odoo13user WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE odoo13db TO odoo13user;
\q
sudo pip3 install odoo
sudo nano /etc/odoo.conf
[options]
admin_passwd = your_admin_password
db_host = localhost
db_port = 5432
db_user = odoo13user
db_password = password
addons_path = /usr/lib/python3/dist-packages/odoo/addons
Save and close the configuration file.
Create a new file for the systemd service using the following command:
sudo nano /etc/systemd/system/odoo.service
[Unit]
Description=Odoo13
Documentation=http://www.odoo.com
[Service]
User=odoo
Group=odoo
Type=simple
ExecStart=/usr/bin/python3 /usr/bin/odoo13-bin -c /etc/odoo.conf
[Install]
WantedBy=multi-user.target
Save and close the file.
Reload the systemd manager configuration:
sudo systemctl daemon-reload
sudo systemctl enable odoo.service
sudo systemctl start odoo.service
sudo systemctl status odoo.service
In this tutorial, we have learned how to install Odoo 13 on Ubuntu 18.04 using Shell-Bash. We hope you found this tutorial helpful, thanks for reading!