1. sudo apt-get update
2. sudo apt-get install gcc
3. sudo apt-get install make
4. sudo apt-get install g++
5. sudo apt-get install libssl-dev
7. mv node-v0.10.35.tar.gz /usr/local/
8. cd /usr/local
9. tar zxvf node-v0.10.35.tar.gz
10. cd node-v0.10.35
11. ./configure
12. make
13. sudo make install
14. vim helloworld.js
console.log('Hello World! Node.js');
15. node helloworld.js
Hello World! Node.js
16. enjoy!
14. vim helloworld.js
console.log('Hello World! Node.js');
15. node helloworld.js
Hello World! Node.js
16. enjoy!
沒有留言:
張貼留言