您的位置:首页 > Web前端 > Node.js

ubuntu install node.js socket.io

2012-11-19 15:29 579 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: