The SDK will always contain the most recent version of this document:
Getting 10gen Up and Running
============================
THE BASICS
==========
The following shows how to get the basic software running - the database and the appserver -
and how to view the sample application included in the SDK.
1) Start the Database
---------------------
To start the database, do the following. (We suggest you do this in a separate window)
$ ./dbctrl.sh start
You should see output similar to the following :
Creating JVM
~ Wed Jun 11 15:00:46 db version: 113 10jun2008
db version: 113 10jun2008
4589 waiting for connections on port 9999 ...
doing prebind option
Once you see this, you are ready to start the appserver.
2) Start the AppServer
------------------------
To start the appserver with an included sample site, do the following :
$ ./runserver.sh ./sites/samplesite/
You should see output similar to the following :
==================================
10gen AppServer vX
listen port = 8080
server root = ./appserver/
webRoot = sites/samplesite/
serverRoot = /data/sites
listen port = 8080
===================================
...
Listening on port: 8080
3) Hit a sample site
-------------------------
To see that things are working, point your browser to
http://localhost:8080/
You should see the appserver and database output information to console (too verbose
to repeat here), and your site should render.
Please see the included documentation SAMPLE-SITES.txt for more information on other sample sites
included in the SDK.
4) Stopping the AppServer
---------------------------
To stop the appserver, just hit ctrl-c in your shell
5) Stopping the Database
--------------------------
To stop the database :
$ ./dbctrl.sh stop
Happy 10gen-ing!
Next, read ADMIN-SITE-HOW-TO.txt to learn how to setup an admin account for the
sample site.
