Odoo中文网|Odoo实施培训

 找回密码
 立即注册
搜索
热搜: Odoo OpenERP 实施
查看: 13549|回复: 0
打印 上一主题 下一主题

Odoo的安装(debian7)

[复制链接]

8

主题

8

帖子

28

积分

新手上路

Rank: 1

积分
28
跳转到指定楼层
楼主
发表于 2015-9-14 19:53:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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/

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|技术支持|开发手册|Odoo中文网-远鼎旗下odoo培训网站 ( 苏ICP备15039516号 )

GMT+8, 2025-6-27 23:14 , Processed in 0.090761 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表