1.准备环境
Centos7.6.1810 :
Postgresql12:Centos7下安装Postgresql12-CSDN博客
python3.6.7:Centos7下搭建python3.6.7环境-CSDN博客
odoo12:https://github.com/odoo/odoo/archive/refs/heads/12.0.zip
2. odoo12环境配置
odoo12源码解压,我放置在 /home/soft/odoo12 路径下
配置odoo.conf
[options]
db_host = 127.0.0.1
db_port = 5432
db_user = odoo12
db_password = 123456
说明:db_user 为安装完Postgresql创建的用户 ,dp_password为其密码。
3.运行odoo12
进入路径:/home/soft 先创建虚拟环境:
python3 -m venv odoo12venv
source /home/soft/odoo12venv/bin/activate
pip3 install -r myrequirements.txt
说明myrequirements.txt 中内容如下:
Babel==2.3.4
Jinja2==2.10.1
MarkupSafe==0.23
Pillow==4.0.0
PyPDF2==1.26.0
Werkzeug==0.11.15
beautifulsoup4==4.12.3
certifi==2024.8.30
chardet==3.0.4
decorator==4.0.10
distlib==0.3.9
docutils==0.12
ebaysdk==2.1.5
filelock==3.4.1
html2text==2020.1.16
idna==2.7
importlib-metadata==4.8.3
importlib-resources==5.4.0
libsass==0.22.0
lxml==4.2.3
olefile==0.47
passlib==1.6.5
pbr==6.1.0
pip==21.3.1
platformdirs==2.4.0
psutil==6.1.0
psycopg2==2.7.3.1
pyparsing==2.1.10
python-dateutil==2.5.3
pytz==2016.7
pywin32==305
reportlab==3.6.8
requests==2.20.0
setuptools==57.5.0
six==1.16.0
soupsieve==2.3.2.post1
typing-extensions==4.1.1
urllib3==1.24.3
virtualenv==20.17.1
vobject==0.9.3
xlrd==1.0.0
xlwt==1.3.0
zipp==3.6.0
suds-jurko==0.6
安装完依赖包之后,进入odoo代码路径:./home/soft/odoo12 执行命令启动服务:
./odoo-bin --config=odoo.conf
访问界面:localhost:8069 (或者 IP地址:端口)
到此linux下odoo12环境搭建完成
标签:odoo12,linux,db,环境,odoo,home,soft,搭建 From: https://blog.csdn.net/weixin_40919791/article/details/144777386