Odoo 9.0 安装实录

服务器是阿里云的ECS:Ubuntu 14.04 64位。

1、安装Deb:

按照官方8.0的安装方法安装9.0,ssh进来的服务器一直是root权限:

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo


发现有错误,提示一堆依赖没有解决:

The following packages have unmet dependencies:

 odoo : Depends: python-ofxparse but it is not installable

        Recommends: antiword but it is not going to be installed

        Recommends: ghostscript but it is not going to be installed

        Recommends: postgresql but it is not going to be installed

        Recommends: python-gevent but it is not going to be installed

        Recommends: poppler-utils but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

首先解决除python-ofxparse以外的问题:

apt-get install antiword ghostscript postgresql python-gevent poppler-utils

再解决python-ofxparse:

echo "deb http://us.archive.ubuntu.com/ubuntu vivid main universe" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install python-ofxparse

再重新安装,解决:

apt-get install odoo


2、其他需安装的Deb:

(1)wkhtmltox:

这货是打印需要的,但是ubuntu源里的版本太低,好像是0.9,odoo要求0.12以上,因此下载安装:

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb 
dpkg -i ./wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


3、Odoo服务器命令:

/etc/init.d/odoo
Usage: /etc/init.d/odoo {start|stop|restart|force-reload|status}


很多Odoo的配置改动都需要restart一下才能生效。比如中文包修改24小时日期显示等。


4、进入开发者调试模式:

8.0的时候在Administrator账户下有个选项,勾上就能进开发者模式,9.0貌似取消了,只能在地址栏后面加"?debug="进入,比如:

http://127.0.0.1:8069/web?debug=

这样,在最上面的菜单上“Open Help Menu”左面,会出来一个选项,从而拥有调试功能。

5、数据库管理:

http://localhost:8069/web/database/manager










你可能感兴趣的:(Odoo 9.0 安装实录)