دستورات تست شده برای نصب Odoo رو توی این پست میارم:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
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 useradd -m -d /opt/odoo17 -U -r -s /bin/bash odoo17 su - postgres -c "createuser -s odoo17" 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 - odoo17 cd /opt/odoo17/ git clone https://www.github.com/odoo/odoo --depth 1 --branch 17.0 /opt/odoo17/odoo python3 -m venv odoo-venv source odoo-venv/bin/activate pip3 install wheel pip3 install -r odoo/requirements.txt deactivate mkdir /opt/odoo17/odoo-custom-addons exit vim /etc/odoo17.conf [options] ; This is the password that allows database operations: admin_passwd = amir db_host = False db_port = False db_user = odoo17 db_password = False addons_path = /opt/odoo17/odoo/addons,/opt/odoo17/odoo-custom-addons vim /etc/systemd/system/odoo17.service [Unit] Description=Odoo17 Requires=postgresql.service After=network.target postgresql.service [Service] Type=simple SyslogIdentifier=odoo17 PermissionsStartOnly=true User=odoo17 Group=odoo17 ExecStart=/opt/odoo17/odoo-venv/bin/python3 /opt/odoo17/odoo/odoo-bin -c /etc/odoo17.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target systemctl daemon-reload sudo systemctl start odoo17 systemctl enable --now odoo17 systemctl status odoo17 journalctl -u odoo17 http://192.168.142.135:8069/ |