OpenERP基础篇-新手入门-环境搭建- Ubuntu&OpenERPV6
-
- Ubuntu10.04
安装步骤与Ubuntu11.10 过程一致,但安装完成后,
访问web 报错 No handler found
解决办法:
$sudo apt-get install python-setuptools
$sudo easy_install werkzeug
执行后,重启OE,OK
参考:<br / http://www.openerp.com/forum/topic30308.html br />With a fresh install of 6.1rc1 on a fresh ubuntu 10.04.3 system the browser gives: "No handler found".
An update of the OS doesn't solve this.
It think this is a bug. I found a workaround:
This can be fixed by:
sudo apt-get install python-setuptools
sudo easy_install werkzeug
3. 其它
1) OpenERP服务相关命令
$ sudo /etc/init.d/openerp start :启动
$ sudo /etc/init.d/openerp stop :停止
$ sudo /etc/init.d/openerp restart :重启
2) Web访问<br / [检测到链接无效,已移除] br />3) Moblie访问<br / [检测到链接无效,已移除] br />
- Ubuntu10.04
-
二. Postgresql安装与配置
说明: 在第一步骤,OpenERP安装完成后,Postgresql也自动安装完成,下面进行相关的配置,使得OE服务器与数据库连接正常.
1. 建立OE的数据库用户openerp,密码为openerp
$su postgres
$ createuser openerp
Shall the new role be a superuser? (y/n) y
$ psql template1
template1=# alter role openerp with password 'openerp';
ALTER ROLE
建立OK
2.Postgresql主要配置文件
/etc/postgresql/9.1/main/postgresql.conf
/etc/postgresql/9.1/main/pg_hba.conf
如果需要远程管理Postgresql数据库,需要修改配置.
$ sudo vi /etc/postgresql/9.1/main/postgresql.conf
在postgresql.conf中,找到port部分,并修改如下:
listen_addresses = '*'
port = 5432
$ sudo vi /etc/postgresql/9.1/main/pg_hba.conf
在pg_hba.conf中添加
host all all 0.0.0.0/0 trust
说明: 直接配置0.0.0.0/0 所有用户都可以访问
3.数据库服务相关命令
$ sudo /etc/init.d/postgresql start :启动
$ sudo /etc/init.d/postgresql stop :停止
$ sudo /etc/init.d/postgresql restart :重启
注意: OpenERP和Postgresql安装配置完成后,建议相应服务重启,然后访问
$ sudo /etc/init.d/openerp restart :重启
$ sudo /etc/init.d/postgresql restart :重启 -
三. Openerp升级安装
Ubuntu11.10
1. 卸载
1).检查软件包的状态.
$dpkg -l | grep 'openerp'
2).使用dpkg -r来删除deb包
$sudo dpkg -r openerp
Postgresql 不需要删除.
2. 下载升级
$ cd /opt
$ sudo wget [检测到链接无效,已移除] br />$ sudo dpkg -i openerp_6.1-1-1_all.deb
提示:
root@ubuntu-openerp:/opt# dpkg -i openerp_6.1-1-1_all.deb
(Reading database ... 121975 files and directories currently installed.)
Preparing to replace openerp 6.1rc1-20120112-192946-1 (using openerp_6.1-1-1_all.deb) ...
Stopping openerp-server: openerp-server.
Unpacking replacement openerp ...
Setting up openerp (6.1-1-1) ...
Starting openerp-server: openerp-server.
Processing triggers for python-support ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
升级成功.