1.Eclipse里建立project。把下载的ofbiz10.04import进来。
2.用外部db。postgreSQL。在postgreSQL里建立ofbiz数据库。和登录id
ofbiz,密码ofbiz。
3.把postgresql-9.0-801.jdbc4.jar复制到/ofbizbase/framework/entity/lib/jdbc
4.编辑/ofbizbase/framework/entity/config/entityengine.xml
把 <delegator name="default" 的 <group-map group-name="org.ofbiz" datasource-name="localpostgres"/>设置成postgres用的。
<datasource name="localpostgres" 的属性编辑成postgres的连接串。
。。。。。
jdbc-uri="jdbc:postgresql://localhost:5432/ofbiz"
jdbc-username="ofbiz"
jdbc-password="ofbiz"
5.在ofbiz根目录下运行ant run-install。自动在postgreSQL里创建表。
6.运行ant run启动内嵌tomcat服务。
7.http://localhost:8080/ecommerce/ 运行网店,http://localhost:8080/myportal运行后台erp。
2.用外部db。postgreSQL。在postgreSQL里建立ofbiz数据库。和登录id
ofbiz,密码ofbiz。
3.把postgresql-9.0-801.jdbc4.jar复制到/ofbizbase/framework/entity/lib/jdbc
4.编辑/ofbizbase/framework/entity/config/entityengine.xml
把 <delegator name="default" 的 <group-map group-name="org.ofbiz" datasource-name="localpostgres"/>设置成postgres用的。
<datasource name="localpostgres" 的属性编辑成postgres的连接串。
。。。。。
jdbc-uri="jdbc:postgresql://localhost:5432/ofbiz"
jdbc-username="ofbiz"
jdbc-password="ofbiz"
5.在ofbiz根目录下运行ant run-install。自动在postgreSQL里创建表。
6.运行ant run启动内嵌tomcat服务。
7.http://localhost:8080/ecommerce/ 运行网店,http://localhost:8080/myportal运行后台erp。