Home › Curriculum › Technical Foundations › Linux for Odoo servers
Linux, Git and Docker · 14 min · Ubuntu 24.04Linux for Odoo servers
The filesystem, users and permissions, packages, systemd services, logs and networking tools on an Odoo server.
In this lesson
- Where things live, and the odoo user
- Packages, venvs and systemd
- The daily toolkit
Key points
- /etc/odoo/odoo.conf, /var/log/odoo, data_dir, /etc/nginx
- Dedicated odoo user; config 640
- venv for Python deps; systemd unit for the service
- tail/grep logs; df, free, htop, ss, curl
Real-world example
Odoo stopped answering at 9 a.m. on a Monday. df -h showed / at 100%: a log file had grown to 60 GB because log rotation wasn't configured. Truncating it, adding logrotate and moving logs to a separate volume restored service in 15 minutes and prevented a repeat.
Questions and answers
Which ports does Odoo use by default?
8069 (HTTP) and 8072 (gevent/websocket).
What does logrotate prevent?
Log files growing until the disk fills.