odoo14 install on ubuntu20.0.4

odoo14 install on ubuntu20.0.4

  1. sudo apt update
  2. sudo apt install git python3-pip build-essential wget python3-dev python3-venv \
    python3-wheel libfreetype6-dev libxml2-dev libzip-dev libldap2-dev libsasl2-dev \
    python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev \
    libxslt1-dev libldap2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev \
    liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev
  3. sudo useradd -m -d /opt/odoo14 -U -r -s /bin/bash odoo14
  4. sudo apt install postgresql
  5. sudo su – postgres -c “createuser -s odoo14”
  6. sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
  7. sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb
  8. sudo su – odoo14
  9. cd /opt/odoo14
  10. source odoo-venv/bin/activate
  11. pip3 install wheel
  12. deactivate
  13. mkdir /opt/odoo14/odoo-custom-addons
  14. exit
  15. sudo nano /etc/odoo14.conf
  16. [options]
    ; This is the password that allows database operations:
    admin_passwd = my_admin_passwd
    db_host = False
    db_port = False
    db_user = odoo14
    db_password = False
    addons_path = /opt/odoo14/odoo/addons,/opt/odoo14/odoo-custom-addons
  17. sudo nano /etc/systemd/system/odoo14.service
  18. [Unit]
    Description=Odoo14
    Requires=postgresql.service
    After=network.target postgresql.service

    [Service]
    Type=simple
    SyslogIdentifier=odoo14
    PermissionsStartOnly=true
    User=odoo14
    Group=odoo14
    ExecStart=/opt/odoo14/odoo-venv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf
    StandardOutput=journal+console

    [Install]
    WantedBy=multi-user.target

  19. sudo systemctl daemon-reload
  20. sudo systemctl enable –now odoo14
  21. sudo systemctl status odoo14
  22. sudo systemctl restart odoo14

Refer to:

https://www.myfreax.com/how-to-install-odoo-14-on-ubuntu-20-04/

https://www.cnblogs.com/cnshen/p/10773730.html