odoo-bin odoo18
时间: 2025-04-24 07:52:22 浏览: 28
### Odoo 18 Installation and Usage Guide for `odoo-bin`
For installing the necessary dependencies to run Odoo, including the Python shared library on Ubuntu, one can use commands such as:
```bash
sudo apt update && sudo apt upgrade -y
sudo apt install python3-pip build-essential wget git python3-dev libxml2-dev libxslt1-dev libsasl2-dev libldap2-dev libpq-dev node-less postgresql postgresql-contrib npm -y[^1]
```
After ensuring all prerequisites are installed, proceed with downloading or cloning the specific version of Odoo desired from its official repository.
#### Cloning Repository
```bash
cd /opt/
sudo git clone --depth=1 --branch 18.0 https://github.com/odoo/odoo.git
```
Setting up a PostgreSQL user is essential since Odoo uses this database system by default.
```sql
sudo su - postgres -c "createuser -s odoo"
```
With everything set up correctly, it's time to configure an environment variable pointing towards where Odoo was cloned into; adjusting paths according to personal setup preferences might be required here.
```bash
export ODOO_HOME=/opt/odoo
echo 'export PATH=$ODOO_HOME:$PATH' >> ~/.bashrc
source ~/.bashrc
```
Running Odoo directly via command line using `odoo-bin` becomes possible after these configurations have been completed successfully.
```bash
$ODOO_HOME/odoo-bin
```
To stop running instances gracefully when working within development environments, press Ctrl+C in terminal sessions used to start services manually like so described above.
阅读全文
相关推荐


















