前言
最近一段时间无聊,整ofbiz来使。可是发现并不那么好用,就用它的一个衍生版bigfish吧。
主站:http://bigfish.salmonllc.com/bfHome.html
目的服务器:
Cent OS
$ uname -a
Linux iZ2536fwftfZ 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
下面简介安装步骤。
依赖
下载Bigfish
地址:http://bigfish.salmonllc.com/bfDownload.html
wget http://feedback.solveda.com/website/downloads/BigFish-eCommerce-v1.21.zip
下载mysql
http://dev.mysql.com/downloads
安装可参照:http://blog.csdn.net/qyp199312/article/details/38326631
下载ofbiz
地址:http://ofbiz.apache.org/download.htmlwget http://mirror.bit.edu.cn/apache/ofbiz/apache-ofbiz-12.04.05.zip
下载主题
wget http://feedback.solveda.com/website/downloads/BigFish-deployment-v1.21.zip
开始安装
目录文件:$ ls internet
apache-ofbiz-12.04.05.zip BigFish-eCommerce-v1.21.zip default_theme.zip
$ cd ..
$ mkdir bigfish
$ cd bigfish
解压缩ofbiz
$ unzip ../internet/apache-ofbiz-12.04.05.zip
$ mv apache-ofbiz-12.04.05/* .
$ mv apache-ofbiz-12.04.05/.* .
$ rmdir apache-ofbiz-12.04.05/
$ unzip ../internet/BigFish-eCommerce-v1.21.zip
$ mv release1.21/build.xml .
$ mv release1.21/hot-deploy/* hot-deploy/
$ mv release1.21/themes/ themes/
$ rm -rf release1.21/
$ unzip ../internet/default_theme.zip
$ mv default_theme/osafe_deployment/ .
$ mv default_theme/themes/osafe_theme/ themes/
$ rm -rf default_theme/
mysql配置
mysql> CREATE SCHEMA bigfishdemo;
mysql> CREATE USER bigfish IDENTIFIED BY 'bigfish';
mysql> USE bigfishdemo
mysql> GRANT ALL PRIVILEGES ON bigfishdemo TO bigfish;
$ vi osafe_deployment/client-deployment.properties
开始编译代码
$ ./ant run-install-seed
还是会编译很长一段时间的。
完成标志是这个:
BUILD SUCCESSFUL
Total time: 1 minute 26 seconds
这中间有各种坑。大家可以回复记录。
此处描述一个:
访问数据库的坑(账户密码、权限等等)
大家切记回过头看看编译日志,没错再继续,不然后续流程可能走不通。
之后就会有一些优化步骤,比如:
之后就会有一些优化步骤,比如:
$ vi osafe_deployment/client-deployment.properties
6 main.datasource.name=localmysql
7 database.name=bigfishdemo
8 database.server=127.0.0.1
9 database.serverPort=3306
10 jdbc.driver=com.mysql.jdbc.Driver
11 jdbc.username=bigfish
12 jdbc.password=bigfish
30 mail.smtp.auth.password=
31 mail.notifications.redirectTo=
等等
完成
$ chmod u+x startofbiz.sh
$ ./startofbiz.sh