Différences entre les versions de « MongoDB »

De Wiki LOGre
Aller à la navigation Aller à la recherche
(Page créée avec « sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev git... »)
 
m
Ligne 1 : Ligne 1 :
* Compilation (TRES LONG)
  sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev
  sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev
  git clone https://github.com/skrabban/mongo-nonx86
  git clone https://github.com/skrabban/mongo-nonx86
Ligne 20 : Ligne 22 :
  chmod a+x /etc/init.d/mongod
  chmod a+x /etc/init.d/mongod


* Edit /etc/init.d/mongod
* Editer /etc/init.d/mongod
  ...
  ...
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/mongo/bin
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/mongo/bin
Ligne 26 : Ligne 28 :
  ...
  ...
  DAEMON_OPTS="$DAEMON_OPTS --config $CONF --rest"
  DAEMON_OPTS="$DAEMON_OPTS --config $CONF --rest"
* Demarrage
sudo /etc/init.d/MongoDB start

Version du 10 mars 2013 à 14:38

  • Compilation (TRES LONG)
sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev
git clone https://github.com/skrabban/mongo-nonx86
cd mongo-nonx86
scons
sudo scons --prefix=/opt/mongo install
PATH=$PATH:/opt/mongo/bin/
export PATH
sudo adduser mongodb
# for the mongodb data files:
sudo mkdir /var/lib/mongodb
# for the log files:
sudo mkdir /var/log/mongodb
sudo chown -R mongodb /var/lib/mongodb/
sudo chown -R mongodb /var/log/mongodb/
cp debian/mongodb.conf /etc/
cp debian/init.d /etc/init.d/mongod
chmod a+x /etc/init.d/mongod
  • Editer /etc/init.d/mongod
...
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/mongo/bin
DAEMON=/opt/mongo/bin/mongod
...
DAEMON_OPTS="$DAEMON_OPTS --config $CONF --rest"
  • Demarrage
sudo /etc/init.d/MongoDB start