Giter VIP home page Giter VIP logo

nodelog / spring-framework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring-projects/spring-framework

0.0 0.0 0.0 101.95 MB

The Spring Framework

Home Page: http://projects.spring.io/spring-framework

Groovy 0.14% Java 99.43% HTML 0.14% Batchfile 0.01% Shell 0.01% AspectJ 0.14% Ruby 0.01% JavaScript 0.01% GAP 0.02% Protocol Buffer 0.01% FreeMarker 0.05% Smarty 0.01% CSS 0.04% Python 0.01% XSLT 0.01%

spring-framework's Introduction

1. 下载代码

git clone [email protected]:nodelog/nodelog.git

2. 安装nodejs以及相关

  • 安装nodejs,命令:

sudo apt-get install nodejs

  • 安装npm,默认安装nodejs自动安装该模块,如果没有,则执行下面命令安装:

sudo apt-get install npm

  • 安装cnpm(淘宝npm镜像代替默认npm来快速安装node模块),命令:

npm install -g cnpm --registry=https://registry.npm.taobao.org

  • 安装项目中所有node模块(自动生成node_modules目录),在项目根目录(项目模块依赖配置文件package.json所在目录)下执行命令:

cnpm install

  • 安装pm2,PM2是带有负载均衡功能的 Node 应用的进程管理器,启动、停止、重启本系统用这个工具就够了:

cnpm install -g pm2

3. 安装mongodb ,具体方法百度 or google

4. 启动mongodb ,指定db目录和log目录

mongod --fork --dbpath=/usr/local/mongodb/data --logpath /usr/local/mongodb/log/mongodb.log --logappend

  1. 修改系统配置
  • 复制settings.bak.js文件重命名为:settings.js
  • 修改配置参数:
module.exports = {
    port: 3000,                                                                             //端口
    cookieSecret: 'cookieSecret',                                                           //cookie名称
    dbUrl: 'mongodb://用户名:密码@数据库ip:端口号(默认27017没有修改的话可省略)/数据库名',      //mongodb数据库链接,如下:
//  dbUrl: 'mongodb://zhangsan:[email protected]/ondelog',
    //发送邮箱配置
    email: {
        host: 'smtp服务器',
        port: 465,//smtp端口,非加密:25,加密:465
        secure: true,//是否加密,
        user: '发送邮箱用户名',
        pass: '发送邮箱密码'
    }
};

6. 启动应用 ,启动文件为:bin/www,-i max参数为:根据有效CPU数目启动最大进程数目来做负载

pm2 start bin/www -i max

7. 这里是列表文本官方文档

NODELOG安装说明

=======

源码已经转移到git@osc上

git.osc地址:http://git.oschina.net/nodelog/nodelog

演示地址:http://www.nodelog.cn

spring-framework's People

Contributors

aclement avatar bclozel avatar beamerblvd avatar bijukunjummen avatar candrews avatar cbeams avatar cdupuis avatar dmak avatar garyrussell avatar izeye avatar jhoeller avatar kazuki43zoo avatar markfisher avatar markpollack avatar marschall avatar nebhale avatar odrotbohm avatar philwebb avatar poutsma avatar ramnivas avatar rstoyanchev avatar rwinch avatar sbrannen avatar scothis avatar sdeleuze avatar snicoll avatar spring-builds avatar sslavic avatar tekul avatar wilkinsona avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.