Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/ripta/nanite
Browse files Browse the repository at this point in the history
* 'master' of git://github.com/ripta/nanite:
  Remove "make run" step since we ran "make" already. "make run" would place the database in /tmp.
  Update readme with complete instructions to build from source, including python prereqs
  RabbitMQ does not require eunit, and some distributions do not even include eunit
  • Loading branch information
Ezra Zygmuntowicz committed Jan 23, 2009
2 parents e7cc7b0 + 023ef75 commit daed0fb
Showing 1 changed file with 36 additions and 24 deletions.
60 changes: 36 additions & 24 deletions README.rdoc
Expand Up @@ -113,26 +113,44 @@ Installing the gem gives us access to the various Nanite commands in the default
git clone git://github.com/tmm1/amqp.git
cd amqp && rake gem && sudo gem install amqp-<VERSION>.gem

=== Install RabbitMQ from source tarball (OS X)
=== Install RabbitMQ from source tarball (OS X and generic Linux)

The following websites may be useful:
In short, you'll need a working erlang installation, python, and simplejson. If your python ("python -V") is 2.6, simplejson is included
in your distribution. Otherwise, install simplejson:

* RabbitMQ website for the latest info : http://www.rabbitmq.com/download.html
* RabbitMQ source download : http://www.rabbitmq.com/server.html
* RabbitMQ build instructions : http://www.rabbitmq.com/build-server.html
* RabbitMQ install instructions : http://www.rabbitmq.com/install.html
easy_install simplejson

If you don't have easy_install, install setuptools from http://pypi.python.org/pypi/setuptools:

These instructions assume v. 1.5.0 (beta)
# Get the latest .egg file for your version of python ("python -V"), then run it:
wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg
sh setuptools-0.6c9-py2.5.egg

cd ~/<SRC>
mkdir rabbit (this will be <RABBIT> hereunder)
cd <RABBIT>
and install simplejson, which is needed for the "make" step below.

These instructions assume v. 1.5.0 (beta):

# Download somewhere
cd /root
wget http://www.rabbitmq.com/releases/rabbitmq-server/v1.5.0/rabbitmq-server-1.5.0.tar.gz
tar -zxvf rabbitmq-server-1.5.0.tar.gz

# Go to your erlang lib directory, usually /usr/lib/erlang/lib or:
cd /usr/local/lib/erlang/lib
sudo ln -s <SRC>/<RABBIT>/rabbitmq-server-1.5.0 ./rabbitmq-server-1.5.0

tar -zxf ~/rabbitmq-server-1.5.0.tar.gz
cd rabbitmq-server-1.5.0
make

# There is no "make install" phase.

Be sure to add the /usr/local/lib/erlang/lib/rabbitmq-server-1.5.0/scripts to your $PATH.

The following websites may also be useful:
* RabbitMQ website for the latest info : http://www.rabbitmq.com/download.html
* RabbitMQ server source download : http://www.rabbitmq.com/server.html
* RabbitMQ build instructions : http://www.rabbitmq.com/build-server.html
* RabbitMQ install instructions : http://www.rabbitmq.com/install.html

Also be sure to add the <SRC>/<RABBIT>/rabbitmq-server/scripts to your $PATH

=== Install RabbitMQ (Linux .deb)

Expand All @@ -150,7 +168,6 @@ Start an Erlang shell

Enter the following commands in the Erlang shell (When installed correctly each should print a great deal of erlang config info):

eunit:module_info().
rabbit:module_info().

Exit the Erlang shell with the following command (or Ctrl-c):
Expand All @@ -160,23 +177,18 @@ Exit the Erlang shell with the following command (or Ctrl-c):

=== Start RabbitMQ

cd <SRC>/<RABBIT>/rabbitmq-server-1.5.0
make run

(Ctrl-c to exit)

In the future you can run RabbitMQ:
All directories will be automatically set up on first run.

(in the foreground)
To run RabbitMQ in the foreground:
sudo rabbitmq-server

(in the background)
To run RabbitMQ in the background:
sudo rabbitmq-server -detached

(check status)
To check status:
rabbitmqctl status

(stop server)
To stop server:
rabbitmqctl stop

You can learn more about RabbitMQ admin here: http://www.rabbitmq.com/admin-guide.html
Expand Down

0 comments on commit daed0fb

Please sign in to comment.