标签:
系统ubuntu, gcc 4.8.3
1. 安装nodeJS
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0.tar.gz tar zxvf node-v4.0.0.tar.gz cd node-v4.0.0/ ./configure make && make install
2. 安装mongodb
apt-get install mongodb
# 修改mongodb的dbpath
vi /etc/mongodb.conf
修改dbpath为/alidata/mongodb
service mongodb restart
3. 安装zeromq
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.3.tar.gz tar zxvf libsodium-1.0.3.tar.gz cd libsodium-1.0.3 ./configure make && make install cd .. wget http://download.zeromq.org/zeromq-4.1.3.tar.gz tar zxvf zeromq-4.1.3.tar.gz cd zeromq-4.1.3 ./configure make && make install
4. 配置zeromq
vi /etc/ld.so.conf
添加 `include /usr/local/lib` 到文件结尾
5. 拉取badjs
git clone https://github.com/BetterJS/badjs-storage.git cd badjs-storage npm install node app.js
6. 未完待续
标签:
原文地址:http://www.cnblogs.com/ousiri/p/4800810.html