养成好习惯,开始学习项目之前,先从ReadMe开始。OFBiz中ReadMe文件有这么几块儿。
System requirements(系统要求)
Java Development Kit (JDK) version 8
Quick start(快速启动)
我比较关心这个
准备命令
MS Windows:(windows)
`gradlew cleanAll loadDefault`
Unix-like OS:(类unix)
`./gradlew cleanAll loadDefault`
启动命令
MS Windows:
`gradlew ofbiz`
Unix-like OS:
`./gradlew ofbiz`
先执行下查看Gradle版本
gradle --version
------------------------------------------------------------
Gradle 3.2.1
------------------------------------------------------------
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_101 (Oracle Corporation 25.101-b13)
OS: Mac OS X 10.12.2 x86_64 (是的,你没有看错,咱的是Mac OS,注意下面命令选择)
下面准备
./gradlew cleanAll loadDefault
等待。。。。BUILD SUCCESSFUL
Total time: 2 mins 50.721 secs
继续
./gradlew ofbiz
Started container birt-container
> Building 91% > :ofbiz (卡住不走了,其实已经启动了)
下面继续,浏览器打开浏览
[Order Back Office](https://localhost:8443/ordermgr)
[Accounting Back Office](https://localhost:8443/accounting)
[Administrator interface](https://localhost:8443/webtools)
You can log in with the user __admin__ and password __ofbiz__.(这句话里包含登录用户名和密码)
the default configuration uses an embedded Java database
(Apache Derby) and embedded application server components such as
Apache Tomcat®, Apache Geronimo (transaction manager), etc.(这句是说,默认使用的数据库和运行中间件)
看看启动后界面样式,忍不住吐槽下,真差(像我这样用开源还吐槽的人,应该也是被吐槽的人)
看够了停止
./gradlew ofbiz --help
没找到停止命令,晕。。。
试试关窗口,好了,停了