OpenbravoPOS Installation/zh cn
Languages: |
English | Deutsch | Euskara | Français | Italiano | 日本語 | Русский | zh cn | Translate this article... |
Contents |
软件安装
安装Java
Openbravo POS 是使用Java技术开发的应用软件,需要预先安装Sun Java1.5或者以上版本
在Windows平台上
你可以从 Sun's website安装该软件
在Ubuntu平台上
请检查 multiverse repository activated 并使用下面的命令:
sudo apt-get install sun-java6-jre sun-java6-fonts
下载并且解包Openbravo POS
下载最新版本 binary package of Openbravo POS from Sourceforge, 使用解压工具解压到一个空的目录
运行Openbravo POS
如果是windows平台,执行文件 start.bat;如果是Linux, 执行 start.sh ;并检查是否有错误报告信息. Openbravo POS 会显示发现空数据库的警告信息,点击OK按钮就会建立数据库来运行Openbravo POS.
在linux平台上您可能还需要增加执行许可给文件start.sh和confiure.sh,使用下列命令:
chmod +x start.sh chmod +x configure.sh
现在,你要决定是Openbravo POS使用哪种数据库,是内带的HSQLDB,还是自行另行安装MySQL、 PostgreSQL或者Oracle数据库。
数据库配置
Openbravo POS 支持以下四种数据库: HSQLDB, MySQL, PostgreSQL 和 Oracle
Openbravo POS 缺省使用 HSQLDB. HSQLDB 已经被打包在你下载的Openbravo POS执行代码中,好处是不需要额外的配置工作了。当然,还是会有许多用户因为性能或者可靠性的原因使用其它关系型数据库。
要进行数据库配置,请转到configuration panel或者执行configuration.bat(在windows平台上)configuration.sh(在linux平台上)。当重新启动Openbravo POS时,系统会提示“数据库是空的,系统将在数据库中创建新的表”,选择“是YES”允许Openbravo POS创建表。(在Openbravo POS版本0.0.24中有26张表)。
数据库配置相关属性包括:
- Driver library
- Is the file provided by the database engine vendor that contains the JDBC driver that allows Java programs to communicate with the database. It is usually a file with extension .jar.
- Driver class
- Is the java class name that implements the JDBC driver. This name is also defined by the database engine vendor.
- URL
- Is the connection string that uses JDBC to localize the JDBC the driver and the database.
- User
- The name of the authorized database user.
- Password
- The password of the database user.
MySQL
在Windows平台上
下载 MySQL server (essentials package recomended) 并安装.
下载 MySQL Connector/J, 并且解压到Openbravo POS 安装目标目录中.
你还可以自行决定是否安装MySQL Administrator 和 MySQL Query Browser MySQL GUI Tools Downloads.
在Ubuntu平台上
Activate the universe repository and do
sudo apt-get install mysql-server libmysql-java
You can also install MySQL Administrator and MySQL Query Browser
sudo apt-get install mysql-admin mysql-query-browser
Connector/J is on /usr/share/java/mysql.jar. You can copy or link it to Openbravo POS' folder
如何使用
创建用户和数据库. 请查看 MySQL documentation 以下为MySql数据库配置样本:
Driver library: mysql-connector-java-3.1.6-bin.jar Driver class: com.mysql.jdbc.Driver URL: jdbc:mysql://localhost:3306/openbravopos User: yourname Password: yourpass
PostgreSQL
需要PostgreSQL数据库和JDBC driver for PostgreSQL.
在Windows平台上
下载PostgreSQL数据库 PostgreSQL download 并安装.
下载 JDBC driver PostgreSQL JDBC Driver ,下载与PostgreSQL数据库相应的版本.
你可以决定是否安装 PosgreSQL administration tool pgAdminIII.
在Ubuntu平台上
Ensure you have the universe repository activated and do
sudo apt-get install postgresql-8.2 libpg-java
You can also install the administrator tool pgAdmin3.
sudo apt-get install pgadmin3
The JDBC lib is on /usr/share/java/postgresql.jar. You can copy or link it to Openbravo POS' folder
如何使用
在数据库服务器软件安装并运行后,你要给Openbravo POS创建一个空的数据库和数据库用户,并将这个空数据库的访问权限授权给该用户. 请查看 PostgreSQL documentation
使用PostgreSQL的数据库配置样本如下:
Driver library: postgresql-8.0.309.jdbc3.jar Driver class: org.postgresql.Driver URL: jdbc:postgresql://localhost:5432/openbravopos User youruser Password: youpass
Oracle
需要Oracle数据库服务器和JDBC driver for Oracle.
在Windows平台上
下载并安装 Oracle XE 和 JDBC Driver
你可以决定是否安装administer and query the database Oracle JDeveloper.
在Ubuntu平台上
下载并安装Oracle XE 和 JDBC Driver
你可以决定是否安装 administer and query the database Oracle JDeveloper.
如何使用
在数据库服务器软件安装并运行后,你要给Openbravo POS创建一个空的数据库和数据库用户,并将这个空数据库的访问权限授权给该用户.
使用Oracle的数据库配置样本如下:
Driver library: ojdbc14.jar Driver class: oracle.jdbc.driver.OracleDriver URL: jdbc:oracle:thin:@localhost:1521:xe User youruser Password: youpass
附加帮助信息
在安装过程中如需其它帮助信息,请使用 Openbravo POS community support forums.