Giter VIP home page Giter VIP logo

manget2torrent's Introduction

Manget2torrent部署文档

本地下载编译源码

这里要求本地已安装nodejs,git。
下载源码: 确保启动mongodb

https://github.com/ssstk/manget2torrent.git
cd manget2torrent
npm install 
npm start 

服务器环境安装

服务器配置

下面的示例安装,是在一台VPS上执行的,配置如下:

  • Memory: 2G
  • Disk: 40G SSD
  • Processor: 2 Core
  • Image: Centos6.5 x64

安装nodejs

nodejs版本:8.11.3

安装pm2

pm2版本(最新版本,以代码方式启动不了

npm install pm2 -g 

安装Mongodb

mongodb版本:3.4.0

manget2torrent

上传至服务器,安装依赖包:

npm install 

因为要以代码的方式调用pm2,所以还要在当前目录安装,

npm install pm2 -g

运行

修改配置文件

运行之前先修改配置文件config.js

mongodbHost: '127.0.0.1',
mongodbPort: 27017,

启动

启动manget2torrent :

yarn start 

问题

服务器带宽

带宽太小容易跑满

多久有数据

这个不一定,和网络等都有关系。不过这次部署,很快就有数据了:

{
    "db" : "antcolony",
    "collections" : 3,
    "objects" : 74,
    "avgObjSize" : 676.7567567567568,
    "dataSize" : 50080,
    "storageSize" : 188416,
    "numExtents" : 5,
    "indexes" : 1,
    "indexSize" : 8176,
    "fileSize" : 67108864,
    "nsSizeMB" : 16,
    "dataFileVersion" : {
        "major" : 4,
        "minor" : 5
    },
    "extentFreeList" : {
        "num" : 0,
        "totalSize" : 0
    },
    "ok" : 1
}

其他

有其他问题请新建issue交流。

manget2torrent's People

Contributors

ssstk avatar

Watchers

 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.