Running opentaps/OFBiz

This short guide is designed to help you get started with opentaps/OFBiz.
Prerequisites

Before you can start running and using opentaps/OFBiz, you will need to download and install Java 1.4 (Java 1.3 or 1.5 will not work.)

If you plan on building opentaps or OFBiz from the source code, you will also need Apache Ant version 1.6 or better. Make sure you have version 1.6+. Some versions of Linux come with Ant 1.5 pre-installed. Those will not work.

Finally, if you wish to be able to check out the OFBiz source code, you will need Subversion.
Downloading and Building

First, get a current copy of opentaps or OFBiz. If you are looking for a relatively stable production version, download opentaps from SourceForge.net. If you are a developer looking for the latest version, you can use subversion to download the latest OFBiz source code or download a weekly build.

If you have either the opentaps download or the OFBiz weekly build, you just need to unzip it. If you downloaded the OFBiz source code, go to your new ofbiz directory to build it and install the seed and demo data:

$ ant run-install

or, if you are using Windows and assuming that you installed ant in c:\ant:

C:\ofbiz> c:\ant\bin\ant run-install

from a Windows command line shell.
Getting It Started

Your copy of opentaps or OFBiz comes with embedded servers and databases, so running it is very simple.

To run the opentaps or OFBiz server, which runs all the applications except Point Of Sales, go to your new opentaps or ofbiz directory and type:

$ ./startofbiz.sh
$ tail -f logs/console.log

or from Windows:

C:\ofbiz> startofbiz.bat

Note that the log file is directly displayed in the shell window in Windows but saved to logs/console.log in Unix/Linux systems, hence the need for the tail command.

Now open up a browser and type into the navigation bar:

http://localhost:8080/ordermgr/control/main

You will be prompted for a username and password. For the demo, use "admin" for username and "ofbiz" for password. You should be logged in and see this screen. Now you can start exploring opentaps/OFBiz.

To run the POS terminal instead, do the following from your ofbiz directory, in either Windows or Unix/Linux:

$ java -jar ofbiz.jar -pos

You will first see a logo and then the POS terminal show up. Type in "1" for the username and "1" for the password to log in as the manager.

本文转自http://www.opensourcestrategies.com/ofbiz/running_ofbiz.php

你可能感兴趣的:(java,apache,linux,ofbiz)