`

Ofbiz的安装

阅读更多
OFBiz的安装实际上很简单,如果只是简单的安装,不需要结合mysql或者oracle之类的数据库,那么直接解压完了,分别按照说明里面的分两步运行就可以①先cmd进入到命令行模式下,cd到你当前的OFBiz的工作环境,速成${OFBIZ_HOME},也就是你的解压环境。然后运行 ant run-install。大概要运行十来分钟。②然后运行 startofbiz ,等五六分钟就可以访问了http://localhost:8080/ecommerce。
  但是要结合mysql安装还是要修改一下工程里面的文件的,下面是安装步骤。
一:安装mysql。
详细参照mysql的基本安装方法,主要是要在mysql里面建立OFBiz所需要的数据库名称和用户,我们可以利用Navicat连接mysql,并且新建立一个数据库ofbiz。新建一个用户ofbiz和密码ofbiz,并且赋予ofbiz全部权限。
二:修改配置文件。
① 拷贝mysql的jdbc驱动到${OFBIZ_HOME}/framework/entity/lib/jdbc下,否则会编译的时候报没有com.mysql.jdbc.Driver驱动类。
② 解压apache-ofbiz-10.04.zip到一个目录下面,我们取名${OFBIZ_HOME},到${OFBIZ_HOME}/framework/entity/config目录下,里面有个entityengine.xml,利用文本工具打开。因为默认的数据库为derby,所以要把localderby改成
<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"/>
        <group-map group-name="org.ofbiz.olap" datasource-name="localmysql"/>
        <group-map group-name="org.ofbiz.tenant" 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"/>
        <group-map group-name="org.ofbiz.olap" datasource-name="localmysql"/>
        <group-map group-name="org.ofbiz.tenant" datasource-name="localmysql"/>
    </delegator>

    <!-- be sure that your default delegator (or the one you use) uses the same datasource for test. You must run "ant run-install" before running "ant run-tests" -->
    <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main">
        <group-map group-name="org.ofbiz" datasource-name=" localmysql "/>
        <group-map group-name="org.ofbiz.olap" datasource-name=" localmysql "/>
        <group-map group-name="org.ofbiz.tenant" datasource-name=" localmysql "/>
</delegator>
③ 然后找到我们的mysql配置信息的地方,里面保存这基本的mysql配置信息。把这段修改成
<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"
            engine="InnoDB" <!-- 现在mysql一般的引擎都是InnoDB,并且不再用table-type,改成engine -->
            character-set="utf8" <!-- 为了支持国际化中文数据库字符编码要改成utf8,注意不要写成utf-8,这个比较容易出错 -->
            collate="utf8_general_ci">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <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/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"<!-- 这里都是数据库的基本配置信息,改成自己对应的基本不会有问题-->
                jdbc-password="ofbiz"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"
                time-between-eviction-runs-millis="600000"/><!-- Please note that at least one person has experienced a problem with this value with MySQL
                and had to set it to -1 in order to avoid this issue.
                For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html-->
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>
三:运行。
① 先cmd进入到命令行模式下,cd到你当前的OFBiz的工作环境,速成${OFBIZ_HOME},也就是你的解压环境。然后运行 ant run-install。大概要运行十来分钟,如果表都建好了说明安装已经成功了。
② 然后运行 startofbiz ,等五六分钟就可以访问了http://localhost:8080/ecommerce。
分享到:
评论

相关推荐

    ofbiz安装与配置

    ofbiz的安装配置指南,适用于初学者!可能和版本有关,请自行调试

    ofbiz应用安装包(win版)

    包括:自动安装mysql服务,设置ofbiz启动所需jre环境,生成桌面启动ofbiz server的快捷方式。 包含文件:winrar自解压启动文件install.bat及ofbiz的启动文件ant.bat及目录截图。 ofbiz及绿色版mysql和jre不在资源内...

    OFBiz安装配置

    超级简单实用,才一分而已,不如下载来看看.你觉得呢

    ofbiz综合技术文档

    OFBiz安装与设置 88 第十二部分:Soap的用法 91 一、soap应用的两种情况 91 1、ofbiz 将其他的webservice 封装成服务,这时ofbiz的应用系统可以直接调用该服务,以访问其他的Webservice: 92 2、其他的soap客户端...

    WIN7上安装Ofbiz 数据库 postgresql

    WIN7上安装Ofbiz 数据库 postgresql 希望对大家有所帮助

    Ofbiz16.11.05运行及开发环境搭建等

    gradle ofbiz 16 开发环境搭建 2 Ofbiz中增加百度地图 8 使用entity-auto服务实现增加、修改、删除提示国际化 9 Ofbiz的电商的新建用户逻辑 10 ofbiz导出的PDF中文乱码 10 外部系统调用Ofbiz中的服务方法 11 Ofbiz的...

    ApacheOFBizDevelopmentTheBeginnersTutorial

    不错的ofbiz 开发指南 (英文版) 详细介绍ofbiz安装、开发环境、系统结构等

    ofbiz1004运行于外部tomcat6的配置文件

    如果你没有试过在windows 上的tomcat上运行ofbiz,那么你一定认为10分的贵了。但是当你搞了几天都没有成功的时候,你就知道这个是物有所值的了。...将它里机的文件到放tomcat安装目录下的相应文件夹里,即可以成功。

    ofbiz开发手册

    本文档作为一个OFBiz的入门教材,主要介绍OFBiz的环境搭建、安装以及用一个简单的应用作为例子介绍了OFBiz应用开发的流程。

    浅谈OFBIZ 作者:李心(北京邮电大学)Email:richie.lx@hotmail.com

    为了像我一样的新手们能够对OFBIZ有一个初步的了解,所以我主要从以下三个方面来对OFBIZ 4.0做一个大致的介绍。 1. OFBIZ的release4.0开发环境的搭建。 2. OFBIZ的汉化示例。 3. OFBIZ的模块开发示例。 开发环境的...

    ofbiz:Apache OFBiz-主要开发已移至ofbiz-frameworks存储库

    有关OFBiz的更多详细信息,请访问OFBiz文档页面:系统要求运行OFBiz的唯一要求是在系统上安装Java Development Kit(JDK)版本8(不仅是JRE,而且是完整的JDK),您可以从下面的链接下载该版本。注意:如果使用的是...

    ofbiz_ynh:OFBiz 包脚本将其安装在 yunohost 服务器上

    Apache-OFBiz 13.07.01 for Yunohost 此版本不使用 SSO 和 OpenLDAP,因此您需要与 admin(pswd:ofbiz) 连接。

    OfBiz和OpenTags架构图

    OfBiz和OpenTags架构图 自己安装测试了一下,还可以。软件CSS风格太一般。

    elpi:基于Apache-OFBiz Framework(bootstrap-theme)的问题跟踪软件

    埃尔皮 Elpi是基于Apache-OFBiz框架的问题跟踪软件。 要求 : 为了安装此软件,请下载以下组件: 蚂蚁 PostgreSQL ...

    win7 安装Opentaps 1.5

    win7 安装Opentaps 1.5 以下是在安装前的一些文件修改和操作 1)修改framework\entity\config\entityengine.xml 文件 a)把 &lt;group-map group-name="org.ofbiz" datasource-name="localderby"/&gt;(53、54行)的...

    OFBizConnect:通过将您现有的 Magento 商店连接到可扩展的 OFBiz 订单管理系统来管理订单到现金

    OFBizConnect 通过将您现有的 Magento 商店连接到可扩展的 OFBiz 订单管理系统来管理... 将 OFBizConnect/app/code/community/OFBiz 文件夹复制到你的 Magento 安装目录 app/code/community/ 将 OFBizConnect/app/etc

    Opentaps开发安装、配置、应用文档

    OFBiz开发者装备系列:0010 &lt;Opentaps&gt;

    开放性实验室预约系统

    安装运行步骤: 1.搭建好ofbiz系统。具体搭建步骤见:http://blog.csdn.net/xiaozaq/article/details/72763123 2.将解压的文件夹booking复制到apache-ofbiz-16.11.02\hot-deploy目录下。 3.将解压的文件夹lib里的...

    java文集

    ext学习笔记一 小试iBatis RIA(Rich Internet Application)的现状和未来 Java应用中域名解析不过期的解决方法 Java编程那些事儿45—数组使用示例1 一步步熟悉OFBiz 用Java做客户端调用.NET写...

Global site tag (gtag.js) - Google Analytics