使用root用户
mv mongodbxxx /usr/local/mongodb
cd /usr/local/mongodb
mkdir -p {db,logs}
cd bin
增加配置文件
dbpath=/usr/local/mongodb/db
logpath=/usr/local/mongodb/logs/mongodb.log
port=27017
fork=true
nohttpinterface=true
mongodb --config /usr/locla/mongodb/bin/mongodb.conf
# boost安装
wget –O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar xzvf boost_1_55_0.tar.gz
cd boost_1_55_0/
./bootstrap.sh --prefix=/usr/local/boost
sudo ./b2 install
sudo ldconfig
# pcre安装
tar xf xxx.tar.gz
cd pcre-xxx
./configure
make && sudo make install