zoukankan      html  css  js  c++  java
  • linux开发node相关的工具

    epel-release

    yum install epel-release

    node

    yum install nodejs

    mongodb

    安装mongodb服务器端
    yum install mongodb-server
    安装mongodb的客户端
    yum install mongodb

    redis

    yum install redis

    npm

    主要包管理
    安装npm
    yum install npm
    使用npm安装cnpm
    先关闭npm的ssl严格认真:
    npm config set strict-ssl false
    安装cnpm
    npm install -g cnpm --registry=https://registry.npm.taobao.org/

    项目目录中安装express框架

    cnpm install express

    nodemon

    监听文件变化重启项目
    cnpm install -g nodemon

    pm2

    生产环境进程管理
    cnpm install -g pm2

    node-inspector

    调试工具,基于谷歌浏览器
    cnpm install -g node-inspector
    使用方式:
    nodemon需添加debug参数
    nodemon --debug xxx.js
    新建终端,启动node-inspector
    chorme中访问生成的地址;
    http://mynode:8080/debug?ws=mynode:8080&port:5858

  • 相关阅读:
    bzoj1027
    bzoj1069
    poj2079
    poj2187
    bzoj2281
    bzoj2285
    bzoj1558
    bzoj1822
    bzoj1559
    bzoj1570
  • 原文地址:https://www.cnblogs.com/milo-wjh/p/8421910.html
Copyright © 2011-2022 走看看