odoo is a free and open-source business management software. Odoo provides all-in-one business software including CRM, eCommerce, accounting
1. Prerequisites
2. Supported Operating Systems
This guide supports installation on:
3. Installation
RHEL/CentOS/Rocky Linux/AlmaLinux
# Install EPEL repository if needed
sudo dnf install -y epel-release
# Install odoo
sudo dnf install -y odoo
# Enable and start service
sudo systemctl enable --now odoo
# Configure firewall
sudo firewall-cmd --permanent --add-port=8069/tcp
sudo firewall-cmd --reload
# Verify installation
odoo --version
Debian/Ubuntu
# Update package index
sudo apt update
# Install odoo
sudo apt install -y odoo
# Enable and start service
sudo systemctl enable --now odoo
# Configure firewall
sudo ufw allow 8069
# Verify installation
odoo --version
Arch Linux
# Install odoo
sudo pacman -S odoo
# Enable and start service
sudo systemctl enable --now odoo
# Verify installation
odoo --version
Alpine Linux
# Install odoo
apk add --no-cache odoo
# Enable and start service
rc-update add odoo default
rc-service odoo start
# Verify installation
odoo --version
openSUSE/SLES
# Install odoo
sudo zypper install -y odoo
# Enable and start service
sudo systemctl enable --now odoo
# Configure firewall
sudo firewall-cmd --permanent --add-port=8069/tcp
sudo firewall-cmd --reload
# Verify installation
odoo --version
macOS
# Using Homebrew
brew install odoo
# Start service
brew services start odoo
# Verify installation
odoo --version
FreeBSD
# Using pkg
pkg install odoo
# Enable in rc.conf
echo 'odoo_enable="YES"' >> /etc/rc.conf
# Start service
service odoo start
# Verify installation
odoo --version
Windows
# Using Chocolatey
choco install odoo
# Or using Scoop
scoop install odoo
# Verify installation
odoo --version
Initial Configuration
Basic Configuration
# Create configuration directory
sudo mkdir -p /etc/odoo
# Set up basic configuration
# See official documentation for detailed configuration options
# Test configuration
odoo --version
5. Service Management
systemd (RHEL, Debian, Ubuntu, Arch, openSUSE)
# Enable service
sudo systemctl enable odoo
# Start service
sudo systemctl start odoo
# Stop service
sudo systemctl stop odoo
# Restart service
sudo systemctl restart odoo
# Check status
sudo systemctl status odoo
# View logs
sudo journalctl -u odoo -f
OpenRC (Alpine Linux)
# Enable service
rc-update add odoo default
# Start service
rc-service odoo start
# Stop service
rc-service odoo stop
# Restart service
rc-service odoo restart
# Check status
rc-service odoo status
rc.d (FreeBSD)
# Enable in /etc/rc.conf
echo 'odoo_enable="YES"' >> /etc/rc.conf
# Start service
service odoo start
# Stop service
service odoo stop
# Restart service
service odoo restart
# Check status
service odoo status
launchd (macOS)
# Using Homebrew services
brew services start odoo
brew services stop odoo
brew services restart odoo
# Check status
brew services list | grep odoo
Windows Service Manager
# Start service
net start odoo
# Stop service
net stop odoo
# Using PowerShell
Start-Service odoo
Stop-Service odoo
Restart-Service odoo
# Check status
Get-Service odoo
Advanced Configuration
See the official documentation for advanced configuration options.
Reverse Proxy Setup
nginx Configuration
upstream odoo_backend {
server 127.0.0.1:8069;
}
server {
listen 80;
server_name odoo.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name odoo.example.com;
ssl_certificate /etc/ssl/certs/odoo.example.com.crt;
ssl_certificate_key /etc/ssl/private/odoo.example.com.key;
location / {
proxy_pass http://odoo_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Apache Configuration
<VirtualHost *:80>
ServerName odoo.example.com
Redirect permanent / https://odoo.example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName odoo.example.com
SSLEngine on
SSLCertificateFile /etc/ssl/certs/odoo.example.com.crt
SSLCertificateKeyFile /etc/ssl/private/odoo.example.com.key
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8069/
ProxyPassReverse / http://127.0.0.1:8069/
</VirtualHost>
HAProxy Configuration
frontend odoo_frontend
bind *:80
bind *:443 ssl crt /etc/ssl/certs/odoo.pem
redirect scheme https if !{ ssl_fc }
default_backend odoo_backend
backend odoo_backend
balance roundrobin
server odoo1 127.0.0.1:8069 check
Security Configuration
Basic Security Setup
# Set appropriate permissions
sudo chown -R odoo:odoo /etc/odoo
sudo chmod 750 /etc/odoo
# Configure firewall
sudo firewall-cmd --permanent --add-port=8069/tcp
sudo firewall-cmd --reload
# Enable SELinux policies (if applicable)
sudo setsebool -P httpd_can_network_connect on
Database Setup
See official documentation for database configuration requirements.
Performance Optimization
System Tuning
# Basic system tuning
echo 'net.core.somaxconn = 65535' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv4.tcp_max_syn_backlog = 65535' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
Monitoring
Basic Monitoring
# Check service status
sudo systemctl status odoo
# View logs
sudo journalctl -u odoo -f
# Monitor resource usage
top -p $(pgrep odoo)
9. Backup and Restore
Backup Script
#!/bin/bash
# Basic backup script
BACKUP_DIR="/backup/odoo"
DATE=$(date +%Y%m%d_%H%M%S)
mkdir -p "$BACKUP_DIR"
tar -czf "$BACKUP_DIR/odoo-backup-$DATE.tar.gz" /etc/odoo /var/lib/odoo
echo "Backup completed: $BACKUP_DIR/odoo-backup-$DATE.tar.gz"
Restore Procedure
# Stop service
sudo systemctl stop odoo
# Restore from backup
tar -xzf /backup/odoo/odoo-backup-*.tar.gz -C /
# Start service
sudo systemctl start odoo
6. Troubleshooting
Common Issues
1. Service won't start:
# Check logs
sudo journalctl -u odoo -n 100
sudo tail -f /var/log/odoo/odoo.log
# Check configuration
odoo --version
# Check permissions
ls -la /etc/odoo
2. Connection issues:
# Check if service is listening
sudo ss -tlnp | grep 8069
# Test connectivity
telnet localhost 8069
# Check firewall
sudo firewall-cmd --list-all
3. Performance issues:
# Check resource usage
top -p $(pgrep odoo)
# Check disk I/O
iotop -p $(pgrep odoo)
# Check connections
ss -an | grep 8069
Integration Examples
Docker Compose Example
version: '3.8'
services:
odoo:
image: odoo:latest
ports:
- "8069:8069"
volumes:
- ./config:/etc/odoo
- ./data:/var/lib/odoo
restart: unless-stopped
Maintenance
Update Procedures
# RHEL/CentOS/Rocky/AlmaLinux
sudo dnf update odoo
# Debian/Ubuntu
sudo apt update && sudo apt upgrade odoo
# Arch Linux
sudo pacman -Syu odoo
# Alpine Linux
apk update && apk upgrade odoo
# openSUSE
sudo zypper update odoo
# FreeBSD
pkg update && pkg upgrade odoo
# Always backup before updates
tar -czf /backup/odoo-pre-update-$(date +%Y%m%d).tar.gz /etc/odoo
# Restart after updates
sudo systemctl restart odoo
Regular Maintenance
# Log rotation
sudo logrotate -f /etc/logrotate.d/odoo
# Clean old logs
find /var/log/odoo -name "*.log" -mtime +30 -delete
# Check disk usage
du -sh /var/lib/odoo
Additional Resources
---
Note: This guide is part of the HowToMgr collection. Always refer to official documentation for the most up-to-date information.