|
Odoo的安装(debian7) A.安装数据库Postgressql
https://wiki.postgresql.org/wiki/Apt
vi /etc/apt/source.list
deb http://apt.postgresql.org/pub/repos/apt/wheezy-pgdg main
apt-get install wgetca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc| apt-key add -
apt-get update
apt get upgrade
apt-get install postgresql-9.4
重启数据库
/etc/init.d/postgresql restart
安装好之后,默认是数据库是postgresql,而且没有密码
su postgres
查看postgresql版本
psql -–version
psql postgres;
alter user postgreswith password '1234567';
Check fordatabase template1 and connect to thesame
postgres@openerp-desktop:/$ psql-l
postgres@openerp-desktop:/$ psql template1
Reset the paswordfor the postgres or any other user you plan to use to manage your databases,run below command to reset the password.
template1=# alterrole postgres with password 'postgres';
ALTER ROLE
设置Pgadmin连接
https://www.odoo.com/documentation/8.0/setup/install.html
1.vi pg_hba.conf
# IPv4 localconnections:
host all all all md5
2.vi postgresql.conf
listen_addresses ='*' # what IP address(es) tolisten on;
(默认是localhost)
deb方式安装odoo
To install Odoo 8.0on Debian-based distribution, execute the following commands as root:
# wget -O - https://nightly.odoo.com/odoo.key| apt-key add -
# echo "deb http://nightly.odoo.com/8.0/nightly/deb/./" >> /etc/apt/sources.list
# apt-get update && apt-get install odoo
This willautomatically install all dependencies, install Odoo itself as a daemon andautomatically start it.
Configuration
The configuration file can be found at/etc/odoo/openerp-server.conf
When theconfiguration file is edited, Odoo must be restarted using service:
$ service odoo restart
Restarting odoo: ok
源码的方式安装
系统程序包安装完毕执行,把Odoo对应版本的requirements.txt文件下载到本地,执行下面命令开始安装Odoo需要的python依赖:
# pip install -r requirements.txt
安装pip工具
访问:locolhost:8069
登陆账号:用户名:admin
密码就是你创建数据库时输入的密码
查看文件安装路径: dpkg -L odoo
Odoo 文件路径/usr/lib/python2.7/dist-packages/openerp
odoo代码下载地址
下载地址:http://nightly.odoo.com/
|
|