NODEJS(4)Pick up my node.js
I used to work with nodeJS, I just tried them on windows machine with a simple File Upload Example.
Recently, I will be glad to pick it up.
1. Installation of NodeJS
>python -V
Python 3.4.0
I do not know if this will do, but my python version is 3.4.0.
I get error message even when I am doing the configure command.
I need to downgrade my python to 2.7.6 https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
>tar zxvf Python-2.7.6.tar.xz
>./configure --prefix=/Users/carl/tool/python-2.7.6
>make
>make altinstall
>sudo ln -s /Users/carl/tool/python-2.7.6 /opt/python-2.7.6
>python -V
Python 2.7.6
Here is my python version now.
Fetch the right version of nodeJS
>wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
Unzip the file and try to install it.
>./configure --prefix=/Users/carl/tool/node-v0.10.28
>make
>sudo make install
>sudo ln -s /Users/carl/tool/node-v0.10.28 /opt/node-v0.10.28
>sudo ln -s /opt/node-v0.10.28 /opt/node
So latest nodeJS is there and running
>node -v
v0.10.28
Then try to run my old nodeJS project in easynodejs.
>npm install formidable
>node index.js
Single CPU, socket 17000 qps, http 4400 qps, Memory 30-40m, the bottle neck will be CPU.
node.js is not suitable for these items>
CPU working
Simple CRUD/HTML apps
DB complex, business logic complex, validation complex
Big J2EE
It is suitable for these items>
real time app
high request, data is small
IO working, not CPU working
Some Open Source Examples
Log.io
Nexe
References:
http://sillycat.iteye.com/blog/1453848
http://sillycat.iteye.com/blog/1460938
http://sillycat.iteye.com/blog/1462736
Tips
http://www.infoq.com/cn/articles/what-is-nodejs
http://www.infoq.com/cn/news/2011/09/nodejs-async-code
http://www.tbdata.org/archives/1285
http://blog.csdn.net/zzulp/article/details/8111427 Core Modules
http://blog.csdn.net/zzulp/article/details/8114540 Recommend Modules
http://www.csser.com/board/4f3f516e38a5ebc97800050c System Info
http://cnodejs.org/topic/4f97d5b8407edba2146030dd why we use nodejs
Geddy
https://github.com/geddy/geddy
Express
http://expressjs.com/
http://www.nodejs.org/api/
http://nqdeng.github.io/7-days-nodejs/
List of nodeJS projects
https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node
Blog Sample
https://github.com/mehfuzh/lighter
Memcache Sample
https://github.com/dalssoft/memcached.js
APNS
https://github.com/adamvduke/node-apn-server
REST SERVER API -IMAGE
https://github.com/caraboides/nodeIM
Nodejs redis wiki
https://github.com/gjritter/nodewiki
- 浏览: 2503617 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Full Stack Javascript - Learn Backbone.js, Node.js and MongoDB (APress 2015).epub Learning Node.js for Mobile Application Development (Packt 2015).pdf Microsoft Press Node.js for .NET Developers (2015...
Node.js 应用程序是用 JavaScript 编写的,可以在 Mac OS X、Windows 和 Linux 上的 Node.js 运行时中运行而无需更改。 Node.js 应用程序旨在最大限度地提高吞吐量和效率,使用非阻塞 I/O 和异步事件。Node.js 应用...
Node.js 应用程序是用 JavaScript 编写的,可以在 Mac OS X、Windows 和 Linux 上的 Node.js 运行时中运行而无需更改。 Node.js 应用程序旨在最大限度地提高吞吐量和效率,使用非阻塞 I/O 和异步事件。Node.js 应用...
brackets-nodejs, 连接括号和 node.js Brackets-Node.js ( node.js 绑定)。是括号的扩展名,用于直接从括号运行 node.js 或者NPM文件。 用法使用新添加的菜单 Node.js 。Run 使用 node,比如 node/home/U
node.js14.18.3安装包下载
node.js(v16.16.0) 安装包
nodejs(node-v16.13.2-x64.msi)——(node-v18.12.1-x64.msi)
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
《Node.js权威指南》旨在成为Node.js领域最全面、最系统和最具实战性的一本书,供初学者系统学习和开发者工作时参考。本书作者是资深Web开发专家,不仅全面、细致地讲解了Node.js的所有功能、特性、使用方法和开发...
nodejs安装包
此文件使用了nodejs实现聊天室功能,里面注释比较详细,希望大家交流学习。使用Node.js实现聊天室功能
api-gateway-nodejs-sdk, 用于 node.js的API网关 SDK 面向 Node.js的 Aliyun网关 SDK状态 安装你可以将它安装为与 npm/cnpm相关的。$ # save into package.json dependencies with -S$ n
Node.js 是一个跨平台的 JavaScript 运行时环境。 Node.js 使用高效、轻量级的事件驱动、非阻塞 I/O 模型。Node.js 的生态系统是目前最大的开源包管理系统。 Node.js 是一套用来编写高性能网络服务器的 JavaScript ...
Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。Node.js 的包管理器 npm
包含35种轻量级功能,可以获取详细的硬件,系统和操作系统信息(支持Linux,macOS,部分Windows,FreeBSD和SunOS) - 没有npm依赖。
非常经典的Nodejs实战教材,开展实例教学。有利于初学者从入门到精通。
nodejs安装包,亲测可用,win7系统
Node.js Design Patterns Second Edition.pdf (node.js 设计模式)高清
基于浏览器的完全打包环境,没有 Nodejs 也照样打包前端项目.zip
NodeJS中文文档精编.pdf,最新版文档