[root@BobServerStation local]# yum -y install gcc gcc-c++ openssl-develnode
[root@BobServerStation local]# wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gzc++
[root@BobServerStation node-v0.10.24]# ./configure --prefix=/usr/local/nodeexpress
[root@BobServerStation node-v0.10.24]# vim /etc/profilenpm
[root@BobServerStation node-v0.10.24]# node -vvim
v0.10.24瀏覽器
[root@BobServerStation node-v0.10.24]# node服務器
> console.log(」Hello NodeJS, I'm Bob.Z「);app
Hello NodeJS, I'm Bob.Z框架
undefined工具
>
[root@BobServerStation local]# npm install express -g
[root@BobServerStation local]# express DemoApp
[root@BobServerStation local]# cd DemoApp
[root@BobServerStation DemoApp]#
[root@BobServerStation local]# cd DemoApp
[root@BobServerStation DemoApp]# npm install
[root@BobServerStation DemoApp]# node app
Express server listening on port 3000
Welcome to Express