跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 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 中文社区

W

whitecrow_

@whitecrow_
关于
帖子
3
主题
1
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • 新手:请假流程报错
    W whitecrow_

    [quote author=mrshelly link=topic=12406.msg22505#msg22505 date=1380245903]
    请换个教程 :
    <br / [检测到链接无效,已移除] br />

    [/quote]

    [quote author=mrshelly link=topic=12406.msg22505#msg22505 date=1380245903]
    请换个教程 :
    <br / [检测到链接无效,已移除] br />[/quote]


  • 南京-正 在应用群里说的一番话
    W whitecrow_

    非常不认同 南京-正 的说法, 只有开源才能促使技术进步,技术壁垒就像闭关锁国。如果没有分享,没有开源没有继承那么就没有今天的IT。没有今天的OE。
    大牛们在CSDN不是不回答问题了,是要看问问题的人问的是什么问题了 例如 “我的机器为什么老死机,我的数据库为啥这么慢”这样的问题让别人怎么回答?
    另:周围的大牛都是年薪百万以上的,各个公司都抢着要,根本没听说过找不到工作的牛人…………


  • CentOS 5.4 下源码安装 openerp 6.1
    W whitecrow_

    写在前面:
    一  openerp 依赖python > 2.6  数据库 postgresql > 8.3 版本。
    二  openerp安装中python依赖库比较多,如果每一个库都编译安装那么依赖问题解决起来比较麻烦,为了安装方便,本文在基础软件安装中使用了 yum 和python默认安装安装方式,在参考本文安装教程之前请确认您的CentOS 能够连上互联网并且正常使用yum资源。

    三 安装文档
    1 安装Pyhton 2.7.3:
    [color=blue]
    [root@uhzb003314 install]#wget -t0 -c http://python.org/ftp/python/2.7.3/Python-2.7.3.tgz br />[root@uhzb003314 install]# tar -zxf Python-2.7.3.tgz && cd  Python-2.7.3
    [root@uhzb003314 Python-2.7.3]# ./configure && make && make install
    [/color]
    **注:重新登陆一次让环境变量重新加载一下
    2 安装 python setup 工具:
    [color=blue]
    [root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz br />[root@uhzb003314 install]# tar -zxf setuptools-0.6c11.tar.gz && cd setuptools-0.6c11
    [root@uhzb003314 setuptools-0.6c11]# python setup.py install
    [/color]
    3 安装并且初始化 postgresql 数据库
    [color=blue]
    [root@uhzb003314 install]#wget -t0 -c http://ftp.postgresql.org/pub/source/v9.1.0/postgresql-9.1.0.tar.gz br />[root@uhzb003314 install]# tar -zxf postgresql-9.1.0.tar.gz && cd postgresql-9.1.0
    [root@uhzb003314 install]# ./configure --prefix=/usr/local/postgresql-9.1  && make && make install
    [root@uhzb003314 postgresql-9.1.0]# groupadd postgres
    [root@uhzb003314 postgresql-9.1.0]# useradd  postgres  -g  postgres
    [root@uhzb003314 ~]# mkdir /data/postgresqldata
    [root@uhzb003314 ~]# chown postgres.postgres /data/postgresqldata/ -R
    [root@uhzb003314 ~]# chmod g+w /data/postgresqldata/ -R
    [root@uhzb003314 ~]# su postgres
    bash-3.2$ cd /data/postgresqldata/
    bash-3.2$  export LC_ALL=zh_CN.UTF_8
    bash-3.2$ cd /usr/local/postgresql-9.1/bin/
    bash-3.2$ ./initdb  -D /data/postgresqldata/ -E utf8

    bash-3.2$ cd /data/postgresqldata/
    bash-3.2$ vim postgresql.conf
    ----取消如下两行注释
    listen_addresses = '127.0.0.1'
    port = 5432
    ----访问ip权限设置 由于我的是本机因此设置 127.0.0.1
    bash-3.2$ vim pg_hba.conf 
    host    all        all        127.0.0.1/32          trust
    -----启动数据库
    bash-3.2$ cd -
    bash-3.2$  ./pg_ctl -D /data/postgresqldata -l /data/postgresqldata/postgresql.log start
    ---- 检查数据库
    bash-3.2$./psql -l
            数据库列表
      名字    |  所有者  | 编码
    -----------+----------+------
    postgres  | postgres | UTF8
    template0 | postgres | UTF8
    template1 | postgres | UTF8

    -------建立数据库用户并且授权
    bash-3.2$ ./createuser openerp
    Shall the new role be a superuser? (y/n) y
    CREATE ROLE

    bash-3.2$ ./psql template1
    template1=# alter role openerp with password '9654321';
    ALTER ROLE


    [/color]



    4 安装openerp python 依赖包
    [color=blue]
    [root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/l/lxml/lxml-3.0.1.tar.gz br />[root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.1.tar.gz 
    [root@uhzb003314 install]#wget -t0 -c [检测到链接无效,已移除] br />[root@uhzb003314 feedparser-5.1.3]# yum install python-ldap -y
    [root@uhzb003314 install]# yum install libxslt-python.x86_64 -y
    [root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/l/lxml/lxml-3.0.1.tar.gz br />[root@uhzb003314 install]# http://pypi.python.org/packages/source/M/Mako/Mako-0.7.3.tar.gz br />[root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/p/python-openid/python-openid-2.2.5.tar.gz br />[root@uhzb003314 install]#http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.4.tar.gz
    [root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/B/Babel/Babel-0.9.6.tar.gz br />[root@uhzb003314 install]#wget -t0 -c [检测到链接无效,已移除] br />[root@uhzb003314 install]#http://pydot.googlecode.com/files/pydot-1.0.28.tar.gz
    [root@uhzb003314 install]#http://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.6.tar.gz#md5=1e41cb219dae9fc353bd4cd47636b283
    [root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/r/reportlab/reportlab-2.5.tar.gz br />[root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/s/simplejson/simplejson-2.6.2.tar.gz br />[root@uhzb003314 install]#wget -t0 -c http://pypi.python.org/packages/source/v/vatnumber/vatnumber-1.0.tar.gz br />[root@uhzb003314 install]#http://pypi.python.org/packages/source/v/vobject/vobject-0.8.1c.tar.gz
    [root@uhzb003314 install]#http://pypi.python.org/packages/source/p/python-datetime-tz/python-datetime-tz-0.2.tar.gz
    [root@uhzb003314 install]#wget -t0 -c http://downloads.sourceforge.net/project/python-webdav/python-webdav_0.5.tar.gz br />[root@uhzb003314 install]#wget -t0 -c  http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.8.3.tar.gz br />[root@uhzb003314 install]#wget -t0 -c http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz br />[root@uhzb003314 install]#http://pypi.python.org/packages/source/x/xlwt/xlwt-0.7.4.tar.gz
    [root@uhzb003314 install]#wget -t0 -c http://downloads.sourceforge.net/project/pywebsvcs/ZSI/ZSI-2.0/ZSI-2.0.tar.gz br />[/color]
    ----所有包的安装方式都是python默认安装方式 解压缩安装包 然后 python setup.py install

    5 安装openerp server
    下载openerp 6.1 安装包:
    [color=blue]
    [root@uhzb003314 install]# wget -t0 -c [检测到链接无效,已移除] br />[root@uhzb003314 install]#cp openerp-6.1-1.tar.gz  /data/
    [root@uhzb003314 install]#tar -zxf openerp-6.1-1.tar.gz
    [/color]
    建立用户
    [color=blue]
    [root@uhzb003314 install]# groupadd  openerp
    [root@uhzb003314 install]# useradd openerp -g openerp
    [root@uhzb003314 install]# su openerp
    [openerp@uhzb003314 install]$ psql -d postgres
    postgres=# CREATE DATABASE openerp;
    [/color]
    建立初始化配置文件
    [color=blue]
    [openerp@uhzb003314 install]$  /data/openerp-6.1-1/openerp-server -s
    [/color]
    control + c 停止执行 然后运行以下命令在后台启动openerp 服务
    [color=blue]
    /data/openerp-6.1-1/openerp-server -c /home/openerp/.openerp_serverrc &
    [/color]
    如果没报错那么你可以直接用浏览器访问你的openerp服务了 默认端口是8069
    http://xxx.xx.xx.xx:8069

  • 登录

  • 没有帐号? 注册

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