Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    OpenERP基础篇-新手入门-环境搭建- Ubuntu&OpenERPV6

    Odoo 安装指南
    5
    11
    13383
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xuxudodo last edited by

      自己整理的实施安装笔记,需要的可以看看, 比较基础.
      OpenERP环境搭建

      目录
      1. Openerp安装与配置
      2. Postgresql安装与配置
      3. Openerp重新安装


      一. Openerp安装与配置
      1. Ubuntu11.10
      $ cd /opt
      $ sudo wget [检测到链接无效,已移除] br />$ sudo dpkg -i openerp_6.1rc1.deb
      一是通过apt-get install openerp-server安装5.0,然后通过deb包来升级。
      二是安装下载的6.1deb包,系统会提示缺少依赖包,不用理会。然后通过apt-get -f install
      系统会将所需包一同装上,甚至会安装postgresql,非常方便。

      注意: 全新安装的Ubuntu 执行上述命令后,会提示相关依赖包未安装时, 则可以继续执行下面的命令
      $ sudo apt-get -f install
      通过终端安装程序,如出现
      sudo apt-get install ***时出错:
      E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
      E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
      出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
      在终端中敲入以下两句
      sudo rm /var/cache/apt/archives/lock
      sudo rm /var/lib/dpkg/lock

      安装完成后.相关目录为:
      1) 程序目录: /usr/lib/pymodules/python2.7/openerp/
      2) 配置文件: /etc/openerp/openerp-server.conf

      修改OpenERP Server配置
      $ sudo vi /etc/openerp/openerp-server.conf
      修改如下:
      [options]
      ; This is the password that allows database operations:
      ; admin_passwd = admin
      db_host = localhost
      db_port = 5432
      db_user = openerp
      db_password = openerp
      ~
      说明:
      db_user: OpenERP server链接posgresql数据库用户名
      db_password: : OpenERP server链接posgresql数据库用户密码
      上述将在posgresql配置过程设置的用户名和密码一致.

      1 Reply Last reply Reply Quote 0
      • X
        xuxudodo last edited by

        1. 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 />
        1 Reply Last reply Reply Quote 0
        • X
          xuxudodo last edited by

          二. 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  :重启

          1 Reply Last reply Reply Quote 0
          • X
            xuxudodo last edited by

            三. 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
            提示:

            [email protected]:/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

            升级成功.

            1 Reply Last reply Reply Quote 0
            • X
              xuxudodo last edited by

              如果看的比较累, 可以直接下载PDF

              另外OpenERP版本已经更新<br / [检测到链接无效,已移除]

              当然也可以源码安装.

              1 Reply Last reply Reply Quote 0
              • wjfonhand
                wjfonhand last edited by

                非常详细的安装文档,谢谢分享

                GoodERP -- Odoo China fork

                1 Reply Last reply Reply Quote 0
                • mrshelly
                  mrshelly last edited by

                  No handler found 

                  一般来讲是 web client 还没有启动就绪.. 再多等几秒就好了...

                  1 Reply Last reply Reply Quote 0
                  • X
                    xuxudodo last edited by

                    [quote author=mrshelly link=topic=4186.msg11288#msg11288 date=1338968145]
                    No handler found 

                    一般来讲是 web client 还没有启动就绪.. 再多等几秒就好了...
                    [/quote]

                    之前测试时,刷新多次也不行, 服务器重启后也没有解决。 之后在OpenERP上搜索了下,按照上面的介绍解决的。

                    1 Reply Last reply Reply Quote 0
                    • C
                      ccdos last edited by

                      收藏了。很多已经学会了,但这么系统完整的安装文档,也是首次见到

                      1 Reply Last reply Reply Quote 0
                      • F
                        fxiao last edited by

                        基本原因是 web client 没有启动成功。查看 openerp-server.log 找问题

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post