免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4303 | 回复: 1
打印 上一主题 下一主题

[制造] opentaps的安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-16 13:16 |只看该作者 |倒序浏览
opentaps是一个基于ofbiz基础开发的完全开源的企业级应用系统。它包括了完整的ERP和CRM解决方案和内建的企业智能工具。

opentaps现在在国内应用面不象sugarcrm/vtigercrm这些企业应用那样普遍,我想很大程度是由于JavaEE应用的逻辑结构严谨与复杂度决定其不象PHP应用那样容易拆分按需阅读切入。了解一个JavaEE的应用需要先了解其构造的框图、分层结构、每层实现的技术方式以及采用的技术。对于OFBiz这样一个野心极大要囊括几乎所有企业应用层面的项目,想要掌握它就更难上加难了,也许我们可以选择简单开始,先从文档的中文化与由简入繁的练习中开始了解这个庞大的开源项目。


闲话少说,我们先从opentaps的安装开始,让我们能够在自己的机器上跑起opentaps开始,也许你一直在寻找的企业应用已经全部在此喽!

准备工作:
1、安装JDK 1.5或以上版本,并在系统中设置好JAVA_HOME及相关PATH
2、安装MYSQL 5.0或以上版本
3、安装ANT1.7或以上版本,并在系统中设置好ANT_HOME及相关PATH
4、从以下地址下载opentaps 1.0.2二进制版本
http://nchc.dl.sourceforge.net/s ... 2-all-platforms.zip

开始安装:
1、通过mysql命令行来创建opentaps所需数据库,为了方便识别,我们这里就用opentaps来做数据库吧。
mysql> create database opentaps;

2、将下载的opentaps-1.0.2-all-platforms.zip解压至你的工作目录。

3、编辑opentaps目录中的framework/entity/config/entityengine.xml文件,使其能正确连接到你的mysql数据库中。
3.1 将其中的<delegator name="default"...> 段中的"datasource-name"从原来的"local" 改为 "localmysql"
3.2 编辑<datasource name="localmysql"...> 段内容,修改"jdbc-uri"为"jdbc:mysql://127.0.0.1/opentaps?autoReconnect=true";修改"jdbc-username"/ "jdbc-password"为你的mysql连接用户名/密码,修改character-
set="gbk",collate="gbk_bin",示例如下:


    <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>
    <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" entity-eca-enabled="false" distributed-cache-clear-enabled="false">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>

    <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>
    <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>      
    </delegator>




    <datasource name="localmysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="gbk"
            collate="gbk_bin">
        <read-data reader-name="seed"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://127.0.0.1/opentaps?autoReconnect=true"
                jdbc-username="opentaps"
                jdbc-password="opentaps-password"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="20"/>


4、进行系统初始化
在命令行窗口下,进入opentaps根目录后运行
ant run-install
系统开始安装,等大约15-30分钟后,系统提示安装完成。


启动opentaps
双击运行opentaps目录下的startofbiz.bat命令即可,请注意控制台输入默认输出至log下的ofbiz.log中,所以无法从控制台中判断系统是否启动完成,一般需等待两到五分钟。也可以将输出改回至console。

访问opentaps
打开浏览器访问:http://localhost:8080/
点击你希望访问的功能特性,系统默认帐号为
admin/ofbiz,拥有所有权限。

评分

参与人数 1可用积分 +2 收起 理由
蓝色虫 + 2 我很赞同

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2010-05-18 00:38 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP