当前位置:   article > 正文

Odoo Windows系统下部署方法_odoo 私有化部署

odoo 私有化部署

Windows 系统下 Odoo 环境搭建流程


① 安装python2.7 安装完成后 在命令行(cmd)输入python 如果不出现内部错误提示则表示环境配置成功
   当出现错误时要设置环境变量
   设置方法:计算机-属性-高级系统设置-环境变量-path-编辑(注意添加变量时一定要在该变量的最末尾加上;然后拷贝python2.7的安装路径)
   添加路径后一定要重开cmd命令窗口避免加载不上的问题,此时再次输入python应该就会显示python的版本不会再报错


② 因为Odoo页面编译时需要加载CSS样式所以涉及到lessc的问题*
   解决方法:首先安装node.js路径为:https://nodejs.org/en/download/
   下载完成后直接安装(因为最新版的node.js已经内置npm所以不需要在安装npm)安装完成后测试(同①在cmd命令下测试如果报错同样在path环境变量下加上安装路径)
   用npm命令安装less
   语法:1)npm install -g less
2)npm install -g less-plugin-clean-css


③ 安装pip 下载URL为https://pypi.python.org/pypi/pip#downloads
   下载安装完成后(压缩包需要解压,解压后通过cmd命令切换到pip文件夹路径后执行python setup.py install)如果报错解决方式同①(在环境变量后面+C:\Python2.7\Scripts即可)
   在cmd命令行输入pip测试,测试成功后执行pip install suds命令自动下载安装


④ 安装postgresql数据库下载URL为https://www.postgresql.org/
   下载完成后安装,安装过程中注意一点(初始的DB密码要记住建议设置密码时全部设置成postgres)
   安装完成后确认监听和配置文件是否正确
   1)C:\Program Files\PostgreSQL\9.6\data文件下的pg_hba.config
   2)C:\Program Files\PostgreSQL\9.6\data文件下的postgresql.conf的listen_addresses = '*'是否为解开状态是否是*的状态


⑤ 因为Odoo需要安装pywin32Server所以需要下载对应python版本的pywin32位服务安装后即可避免报错问题(ImportError: No module named win32service)
   下载URL为https://sourceforge.net/projects/pywin32/


⑥ 安装Pycharm 下载地址http://www.jetbrains.com/pycharm/download/
   注册码:43B4A73YYJ-eyJsaWNlbnNlSWQiOiI0M0I0QTczWVlKIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNza
WduZWVOYW1lIjoiIiwiYXNzaWduZW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X+ZCDKoPfiYXiaSiH+H
xAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9b
VzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4z
wfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxE
dek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0
l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h
7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38Ak
nZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lR
JnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==


⑦ 下载Odoo源码https://www.odoo.com/zh_CN/page/download
   源码导入时注意(路径不能为汉字路径否则可能会导致odoo.config文件加载时路径乱码问题)
   pycharm配置:启动PyCharm,打开Odoo源码目录,等待几分钟indexing完成
菜单Run-->Edit Configurations…
添加python configuration
Name: odoo
Script:/home/odoo/odoo-dev/odoo-server/odoo-bin(加载应该会自动生成)
Script parameters:--config=/home/odoo/odoo-dev/odoo.conf(可以在工程源码的debian文件夹下右击odoo.config文件Copy Path粘贴即可)
Working directory:/home/odoo/odoo-dev/odoo-server(加载应该会自动生成)
   配置完成后执行在IE浏览器输入localhost:8069会自动登录到数据库选择创建画面第一项为④安装时创建的管理库密码:postgres


附:数据库选择界面url http://localhost:8069/web/database/selector

    带db信息的登录界面url http://localhost:8069/web/login?db=odoo

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/426018
推荐阅读
相关标签
  

闽ICP备14008679号