📜  odoo 13 install - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:03:21.276000             🧑  作者: Mango

odoo 13 install - Shell-Bash

Welcome to this tutorial on how to install Odoo 13 using Shell-Bash!

Prerequisites

Before we start installing Odoo 13, you need to ensure that your system meets the following prerequisites:

  • Ubuntu 18.04
  • Access to terminal/shell
  • Access to sudo user
  • Python 3.6 or later
  • PostgreSQL installed on your server
Installation Steps
  1. Update your Ubuntu repository with the command:
sudo apt update
  1. Install the necessary packages using the following command:
sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx
  1. Log in to the PostgreSQL interface with the following command:
sudo -u postgres psql
  1. Create a new user and a new database with the following commands:
CREATE DATABASE odoo13db;
CREATE USER odoo13user WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE odoo13db TO odoo13user;
\q
  1. Install Odoo 13 using pip3:
sudo pip3 install odoo
  1. Create a new Odoo 13 configuration file:
sudo nano /etc/odoo.conf
  1. Add the following lines in the configuration file:
[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
  1. Save and close the configuration file.

  2. Create a new file for the systemd service using the following command:

sudo nano /etc/systemd/system/odoo.service
  1. Add the following lines in the file:
[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
  1. Save and close the file.

  2. Reload the systemd manager configuration:

sudo systemctl daemon-reload
  1. Enable the odoo service at startup:
sudo systemctl enable odoo.service
  1. Start the odoo service:
sudo systemctl start odoo.service
  1. Check the status of the odoo service:
sudo systemctl status odoo.service
Conclusion

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!