2012年11月13日火曜日

Ubuntu 12.04.1 LTSにNode.js環境を作る

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク



Node.jsUbuntu 12.04.1 LTS
Github
Installing Node.js via package manager
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
沿

Node.js


sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm

Node.jsC++

sudo apt-get install nodejs-dev

Node.js


node使
js

hello.js
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8080);
console.log('Server running at 8080');

node hello.js

!






Node
http://www.nodebeginner.org/index-jp.html

Node.js v0.8.14 Manual & Documentation
http://nodejs.org/api/

0 件のコメント:

コメントを投稿