> ## Content Index
> Fetch the complete content index at: https://blog.k3s.9zf.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# centos7.5安装odoo12手记
- URL: https://blog.k3s.9zf.net/centos7-5-e5-ae-89-e8-a3-85odoo12-e6-89-8b-e8-ae-b0/
- Published: 2018-11-11T10:26:54.000Z
- Updated: 2018-11-11T10:26:54.000Z
- Author: liu
- Tags: Linux, #wordpress, #Import 2026-10-29 06:11

机器自带python2.7.5  
原文地址https://odoo.net.cn/topic/5251/%E9%98%BF%E9%87%8C%E4%BA%91%E9%83%A8%E7%BD%B2-centos7-4-python3-6-postgresql10-odoo12-openresty1-13-nginx1-13-%E5%AE%9E%E4%BE%8B%E6%95%99%E7%A8%8B  
字体可以下载思源黑体，解压后复制文件夹到/usr/share/fonts/  
yum install sassc 没有软件包，跳过了，暂时正常  
没有odoo-bin需要创建  
https://github.com/odoo/odoo这里找，然后修改（备注,由于未改动原python2.X,因此需要修改odoo-bin第1行 #!/usr/bin/env python3为 #!/usr/bin/python3

修改配置文件，添加本地模块目录  
`addons_path = /home/wwwroot/odoo.luanjiu.com/odoo/addons, /home/wwwroot/odoo.luanjiu.com/odoo/myaddons`  
`./odoo-bin -c /etc/odoo/odoo.conf`可以检测配置文件是否有错