1 After you configure Odoo as a system service:
Odoo Log directory:/var/log/odoo
Odoo configuration file directory:/etc/odoo/openerp-server.conf
Odoo Initialization file directory:/etc/init.d/odoo
2 Update Odoo profile to be more adaptable to system services, here are the items to note:
- Addons_path: Add the path to the custom module here
- Xmlrpc_port: Listening port, default 8069
- Log_level: Log at the info level by default, and change to DEBUG_RPC
- ADMIN_PASSWD: The total administrator password, must be changed to a safe
- Logrotate=true: This will separate the log files for one day and the longest logs for the last one months
- Data_dir: This is an attachment save directory, need to be backed up regularly
- Without_demo=true: Settings in the production environment so that the database does not contain presentation data
3 If using a reverse proxy like Nginx, the following parameters need to be set:
- Proxy_mode=true
- Xmlrpc-interface: Here to set the listening address, by default, listen to 0.0.0.0, in the case of using reverse proxy can be changed to 127.0.0.1 in order to respond only to a local requirement.
- Workers: Set multicore, generally not, not fine research.
Some parameters that Odoo needs to configure as a service