keenwon/antcolony

等了半天也没见有数据

allphfa opened this issue · 6 comments

config.js

等了半天,也没没数据啊,是不是要配置开放端口啥的

'use strict';

module.exports = {

    debug: true,

    // TODO:绑定address
    //address:'127.0.0.1',

    // redis相关
    //redisHost: '<设置redis地址>', // 服务器
    redisHost: '127.0.0.1',
    redisPort: 6379,
    redisAuth: 'a426416',

    // mongodb相关
    //mongodbHost: '<设置mongodb地址>', // 服务器
    mongodbHost: '127.0.0.1',
    mongodbPort: 27017,
    mongodbDatabase: 'antcolony',
    mongodbUserName: 'antcolony',
    mongodbPassword: 'a426416',

    elasticsearchHost: '<设置Elasticsearch地址>', // 127.0.0.1:9200

    // bootstrap dht
    //'bootstrapAddress': 'dht.transmissionbt.com',
    bootstrapAddress: 'router.utorrent.com',
    bootstrapPort: 6881,

    // remoteNodes数量限制
    remoteNodesLimit: 100000,

    // 单个worker内存限制
    memoryLimit: {
        'worker': '65',
        'male': '45',
        'female': '60'
    },

    // 保留多少天的热度
    hotCounts: 14,

    worker: {
        3000: {
            sended: true, // 是否发送find_node
            cycle: 20 // 周期,每隔多少毫秒发送一次find_node。值越小,频率越高
        },
        3001: {
            sended: true,
            cycle: 20
        },
        3002: {
            sended: true,
            cycle: 20
        },
        3003: {
            sended: true,
            cycle: 20
        },
        3004: {
            sended: true,
            cycle: 20
        }
    }
};
2018-05-31T07:30:54.184Z - error: uncaughtException: Cannot find module 'mongodb/node_modules/bson'

模块找不到,没安装好

npm install -g grunt
npm install -g cnpm
mongoose需要cnpm才能正常安装
文档不完整,已经安装好了,没错误了,等了2个小时还是没数据

要设置什么端口吗,用得阿里云,可能端口限制了

关闭,有问题再开。

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.