zoukankan      html  css  js  c++  java
  • nodejs的安装

    ubuntu默认安装的版本太低。要安装高版本。

    保证 g++ : sudo apt-get install g++

    python 2.7

    wget http://nodejs.org/dist/v0.10.20/node-v0.10.20.tar.gz

    >> tar xzvf node-v0.10.20.tar.gz

    >>cd node-v0.10.20.tar.gz

    >>./configure

    >>make && make install (漫长的等待…)

    配置:

    vi /etc/profile
    在export PATH USER 。。。一行的上面添加如下内容,并将NODE_HOME/bin设置到系统path中
    #set for nodejs
    export NODE_HOME=/usr/local/node/0.9.0
    export PATH=$NODE_HOME/bin:$PATH
    保存退出后执行如下命令,使刚才的配置生效
    [root@SNDA-192-168-15-161 node-v0.9.0]# source /etc/profile

    执行node -h命令验证设置成功

    [root@SNDA-192-168-15-161 ~]# node -h
    Usage: node [options] [ -e script | script.js ] [arguments]
    node debug script.js [arguments]

  • 相关阅读:
    关于Intent
    k8s常用命令
    kube-ui安装
    配置k8s dns
    centos 7 部署k8s集群
    多进程multiprocessing模块
    queue
    github安装k8s
    错误: No API token found for service account "default",
    线程
  • 原文地址:https://www.cnblogs.com/strikebone/p/3505155.html
Copyright © 2011-2022 走看看