Openbravo 3.0安装过程简述

完整的安装说明请参考 http://wiki.openbravo.com/wiki/Installation/Custom .

 

1. 安装Postgres数据库。这里使用的是Postgres 9.1,安装完成后需要再额外安装uuid-ossp扩展。参考 Installing "uuid-ossp" library in Postgres 9.1 .

2. 安装JDK。Operbravo现在支持Sun JDK 1.6。设置JAVA环境变量:

JAVA_HOME="C:\Program Files\Java\jdk1.6.0_43"
PATH=%PATH%;%JAVA_HOME%\bin

3. 安装Tomcat,7.0暂不支持,6.0就可以,注意用tar不要用Installer,Tomcat安装路径中不要有空格。设置CATALINA环境变量:

CATALINA_HOME=C:\apache-tomcat-6.0.29
CATALINA_BASE=C:\apache-tomcat-6.0.29
CATALINA_OPTS=-server -Djava.awt.headless=true -Xms64M -Xmx512M -XX:MaxPermSize=256M
PATH=%PATH%;%CATALINA_HOME%\bin

Copy the C:\Java\jdk1.6.0_<version>\bin\lib\tools.jar file from your Sun JDK installation to C:\Apache Software Foundation\Tomcat 6.0\lib\

COPY "C:\Program Files\Java\jdk1.6.0_43\lib\tools.jar" "C:\apache-tomcat-6.0.29\lib"

In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in C:\Apache Software Foundation\Tomcat 6.0\conf\context.xml:

<!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> -->

Openbravo does a hot-deploy a of openbravo.war file to Tomcat but on Windows it often encounters file locking issues, to avoiding locking edit %CATALINA_BASE%\conf\context.xml. Find the root <Context> and add these two attributes:

<Context antiJARLocking="true" antiResourceLocking="true">

Configure a username and password for the Tomcat Manager, by replacing the C:\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml file with these contents, replacing password="admin" with your chosen password:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>

 You can check that Tomcat is running by opening http://localhost:8080 in a web browser.

4. 安装Ant,1.8未测试,用1.7。设置ANT环境变量:

ANT_HOME=C:\apache-ant-1.7.1
ANT_OPTS=-Xmx512M -XX:MaxPermSize=128M
PATH=%PATH%;%ANT_HOME%\bin

5. 下载Openbravo,解压缩到本地目录,注意不要有空格。

Openbravo 3.0安装过程简述_第1张图片

6. 在Openbravo目录执行ant setup,这实质应该是根据当前操作系统下载对应的配置程序到config目录,Windows系统对应的配置程序是setup-properties-windows.exe
Openbravo 3.0安装过程简述_第2张图片
配置程序的目的是图形化配置Openbravo.properties。执行配置程序:

Openbravo 3.0安装过程简述_第3张图片
Openbravo 3.0安装过程简述_第4张图片
Openbravo 3.0安装过程简述_第5张图片
Openbravo 3.0安装过程简述_第6张图片
Openbravo 3.0安装过程简述_第7张图片
Openbravo 3.0安装过程简述_第8张图片
Openbravo 3.0安装过程简述_第9张图片
Openbravo 3.0安装过程简述_第10张图片
Openbravo 3.0安装过程简述_第11张图片
Openbravo 3.0安装过程简述_第12张图片
Openbravo 3.0安装过程简述_第13张图片

7. 在Openbravo目录执行执行ant install.source。中间可能会出现内存异常,解决方法参考 java.lang.OutOfMemoryError : Java heap space 。

Openbravo 3.0安装过程简述_第14张图片

8. 安装成功,Operbravo被复制到了%CATALINA_HOME%\webapps目录:
Openbravo 3.0安装过程简述_第15张图片
9. 启动Tomcat服务器。同ANT一样,也可能会出现Heap错误,加入环境变量CATALINA_OPTS=-server -Djava.awt.headless=true -Xms64M -Xmx512M -XX:MaxPermSize=256M, 重启Tomcat。

Openbravo 3.0安装过程简述_第16张图片

9. 打开浏览器测试一下。The username is Openbravo, with an uppercase O. The password is openbravo, with a lowercase o. The system is case-sensitive, and you need to type both data elements correctly to access it.

Openbravo 3.0安装过程简述_第17张图片

你可能感兴趣的:(open)