跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 安装指南
  4. OpenERP基础篇-新手入门-环境搭建- Ubuntu&OpenERPV6

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

已定时 已固定 已锁定 已移动 Odoo 安装指南
11 帖子 5 发布者 13.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • X 离线
    X 离线
    xuxudodo
    写于 最后由 编辑
    #1

    自己整理的实施安装笔记,需要的可以看看, 比较基础.
    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 条回复 最后回复
    0
    • X 离线
      X 离线
      xuxudodo
      写于 最后由 编辑
      #2
      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 条回复 最后回复
      0
      • X 离线
        X 离线
        xuxudodo
        写于 最后由 编辑
        #3

        二. 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 条回复 最后回复
        0
        • X 离线
          X 离线
          xuxudodo
          写于 最后由 编辑
          #4

          三. 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

          升级成功.

          1 条回复 最后回复
          0
          • X 离线
            X 离线
            xuxudodo
            写于 最后由 编辑
            #5

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

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

            当然也可以源码安装.

            1 条回复 最后回复
            0
            • wjfonhandW 离线
              wjfonhandW 离线
              wjfonhand
              写于 最后由 编辑
              #6

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

              GoodERP -- Odoo China fork

              1 条回复 最后回复
              0
              • mrshellyM 离线
                mrshellyM 离线
                mrshelly
                写于 最后由 编辑
                #7

                No handler found 

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

                1 条回复 最后回复
                0
                • X 离线
                  X 离线
                  xuxudodo
                  写于 最后由 编辑
                  #8

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

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

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

                  1 条回复 最后回复
                  0
                  • C 离线
                    C 离线
                    ccdos
                    写于 最后由 编辑
                    #9

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

                    1 条回复 最后回复
                    0
                    • F 离线
                      F 离线
                      fxiao
                      写于 最后由 编辑
                      #10

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

                      1 条回复 最后回复
                      0

                      • 登录

                      • 没有帐号? 注册

                      • 登录或注册以进行搜索。
                      • 第一个帖子
                        最后一个帖子
                      0
                      • 版块
                      • 标签
                      • 热门
                      • 用户
                      • 群组