Install zemomq and Mngrel2 on Debian Squeeze
# as root
apt-get install uuid-dev
apt-get install build-essential
wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
tar -xzvf zeromq-2.2.0.tar.gz
cd zeromq-2.2.0/
./configure
make
sudo make install
ldconfig
apt-get install sqlite3 libsqlite3-dev
apt-get install sudo
wget http://mongrel2.org/static/downloads/mongrel2-1.7.5.tar.bz2
tar -xjvf mongrel2-1.7.5.tar.bz2
cd mongrel2-1.7.5/
make clean all && sudo make install
adduser mongrel
cd ..
mv mongrel2-1.7.5/ /home/mongrel/
cd /home/mongrel
chown -R mongrel mongrel2-1.7.5/
cd mongrel2-1.7.5/
# log out and login as mongrel user
cd mongrel2-1.7.5/
cp examples/configs/sample.conf mysite.conf
m2sh load -config mysite.conf
ls config.sqlite
mkdir run logs tmp
m2sh start -host localhost
# access this url to test it http://your_hostname:6767/tests/sample.html
curl http://your_hostname:6767/tests/sample.html
hi there
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home