ubuntu install node.js socket.io

https://github.com/joyent/node

http://www.shaunambrose.com/2011/10/28/how-to-setup-node-js-npm-and-coffeescript-on-ubuntu/

   apt-get update

  101  apt-get install git-core curl build-essential openssl libssl-dev
  102  which python

  104  git clone https://github.com/joyent/node.git


https://github.com/joyent/node/wiki/Troubleshooting-installation

returns this error:

fatal: https://github.com/joyent/node.git/info/refs download error - The requested URL returned error: 403

got this working instead with

git clone --depth 1 git://github.com/joyent/node.git

  110  cd node/
  112  vi configure 
  113  ./configure 
  114  make 
  121  make install
  123  npm install -g coffee-script

  124  coffee -v

npm install express

npm install socket.io@0.8.7

npm install socket.io-client@0.8.7


??warn  - client not handshaken client should reconnect   !!!@0.8.7

install redis:   npm install hiredis redis

??install redis node-waf: Command not found

apt-get install nodejs-dev




 wget http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
   36  ls
   37  tar -xzf node-v0.8.14.tar.gz 
   38  ls
   39  cd node-v0.8.14/
   40  ls
   41  cat README.md 
   42  ./configure 
   43  make
   44  make install
   45  ls
   46  ls /usr/local/
   47  ll /usr/local/
   48  ll /usr/local
   49  ls
   50  ls -l /usr/local/
   51  ls -l /usr/local
   52  man chmod
   53  ls
   54  sudo -i 
   55  ls
   56* make install 
   57  npm install express
   58  npm instlal coffee-script
   59  npm install coffee-script
   60  ..
   61  cd ..
   62  coffee -v
   63  cd node-v0.8.14/
   64  cd ..
   65  node
   66  cd node-v0.8.14/
   67  ls
   68  cd node_modules/
   69  ls
   70  npm uninstall coffee-script
   71  npm install -g coffee-script
   72  cd ..
   73  coffee 
   74  cd node_modules/
   75  ls
   76  npm install coffee-script socket.io socket.io-client hiredis redis async express
   77  npm install async
   78  cd ..
   79  coffee 
   80  cd ..
   81  coffee 
   82  vi /home/test/.bashrc
   83  coffee 
   84  ls
   85  cd node-v0.8.14/
   86  ls
   87  npm install msgpack
   88  cd ..
   89  yum
   90  wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.1.tgz
   91  wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.2.1.tgz
   92  ls

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值