- sudo apt update
- 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 - sudo useradd -m -d /opt/odoo14 -U -r -s /bin/bash odoo14
- sudo apt install postgresql
- sudo su – postgres -c “createuser -s odoo14”
- sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
- sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb
- sudo su – odoo14
- cd /opt/odoo14
- source odoo-venv/bin/activate
- pip3 install wheel
- deactivate
- mkdir /opt/odoo14/odoo-custom-addons
- exit
- sudo nano /etc/odoo14.conf
- [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 - sudo nano /etc/systemd/system/odoo14.service
-
[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 - sudo systemctl daemon-reload
- sudo systemctl enable –now odoo14
- sudo systemctl status odoo14
- 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