当前位置:首页 > nodejs > 正文

ubuntu 安装node环境全过程(为了测试fis系统)

Node.js是一个基于google v8+javascript的服务端编程框架。但是Node.js又不是js应用,应该说是js的运行平台。它采用事件驱动、异步编程,为网络服务而设。本质是封装了V8引擎;

Node.js的性能不错,按照创始人Ryan Dahl的说法,性能是Node.js考虑的重要因素,选择c++和v8而不是ruby或者其他的虚拟机也是基于性能的目的。Node.js在设计上也是比较大胆,它以单进程、单线程模式运行,事件驱动机制是Node.js通过内部单线程高效率地维护事件循环队列来实现的,没有多线程的资源占用和上下文切换,这意味着面对大规模的http请求,Node.js凭借事件驱动搞定一切

安装步骤:

首先确保系统安装来python,gcc,g++,如果没有则安装:

从nodejs官网下载最新的nodejs源码包
目前是Version 0.10.24(node-v0.10.24.tar.gz偶数表示稳定版)

接下来解压:

如果报错了,比如:
#报错: -bash: /usr/sbin/node: No such file or directory
可以在当前解压的木中看,看到一个文件:

node -> out/Release/node*

我估计是 make install 在 ubuntu 上考虑不周导致的,我们将编译好的 node copy到 /usr/sbin 目录中

cp ~/out/Release/node /usr/sbin/

13 条评论

  1. 8楼2014-03-31 上午5:09
    women's trousers

    Very rapidly this web page will be famous among all blogging visitors, due to it’s good posts

  2. 7楼2014-04-02 上午1:25
    moda in pelle

    Hi! Do you use Twitter? I’d like to follow you if that would be okay.
    I’m absolutely enjoying your blog and look forward to new posts.

    • 2014-04-09 下午8:55
      admin

      thanks very much for your encouragement.
      u can at me @jackqqxu

  3. 6楼2014-04-07 下午7:44
    vida moda

    I always used to study paragraph in news papers but now as I
    am a user of internet thus from now I am using net for articles or reviews, thanks to web.

  4. My family all the time say that I am wasting my time here at net,
    but I know I am getting knowledge everyday by reading thes nice articles or reviews.

  5. 4楼2014-04-17 上午5:01
    kokos chwilówka online

    This site really has all the information I wanted concerning this subject and didn’t know who to ask.

    • 2014-04-28 上午10:52
      admin

      u could leave the message and i will reply if i can.

  6. 地板2014-04-25 上午4:34
    mega pożyczki chwilówki

    Can you tell us more about this? I’d want to find out some
    additional information.

    • 2014-04-28 上午10:51
      admin

      was there anything wrong with your setup process?

  7. 板凳2014-06-05 下午11:14
    high fashion clothing

    Usually I do not learn post on blogs, but I would like to say that this
    write-up very pressured me to try and do so! Your
    writing style has been surprised me. Thanks, very great article.

  8. 沙发2014-06-06 下午8:44
    high fashion clothing

    Hi, I do believe your web site could possibly be having internet
    browser compatibility problems. Whenever I take a look at your blog in Safari,
    it looks fine however, when opening in I.E., it’s
    got some overlapping issues. I merely wanted to give you a quick heads up!
    Other than that, great site!

    • 2014-06-07 下午11:45
      admin

      really? oh, my god. I WILL try fix it.

发表评论

您必须 [ 登录 ] 才能发表留言!