GithubHelp home page GithubHelp logo

ocelot's Introduction

部署说明

  1. 事先准备
apt-get update
apt-get install --no-install-recommends -y \
        build-essential \
        automake \
        cmake \
        default-libmysqlclient-dev \
        libboost-iostreams-dev \
        libboost-system-dev \
        libev-dev \
        libjemalloc-dev \
        libmysql++-dev \
        pkg-config
  1. cd 到项目根目录

  2. 构建

autoreconf -i
./configure --with-mysql-lib=/usr/lib/x86_64-linux-gnu/ \
        --with-ev-lib=/usr/lib/x86_64-linux-gnu/ \
        --with-boost-libdir=/usr/lib/x86_64-linux-gnu/
make
  1. 更新一下数据库
ALTER TABLE `xbt_snatched` ADD `ipv6` VARCHAR(45) NOT NULL;
ALTER TABLE `xbt_files_users` ADD `ipv6` VARCHAR(45) NOT NULL;
  1. 参考一下 ocelot.conf.dist 配置 ocelot.conf

  2. 使用 nohup 启动

nohup ./ocelot &>ocelot.nohup.log &
  1. 配置gazelle 里的config.php
  • 修改 TRACKER_HOST 为 tracker 服务器域名或者 ip
  • 修改 TRACKER_PORT 为 ocelot监听的端口 或 nginx反向代理的端口 网站后台(gazelle 里的 tracker.class.php ) 不支持调用启用了 ssl 的 tracker 接口的调用,所以,借助 nginx 支持 https 后,只能配置 http 的端口

Ocelot

Ocelot is a BitTorrent tracker written in C++ for the Gazelle project. It supports requests over TCP and can only track IPv4 peers.

Ocelot Compile-time Dependencies

Installation

The Gazelle installation guides include instructions for installing Ocelot as a part of the Gazelle project.

Standalone Installation

  • torrents
  • users_freeleeches
  • users_main
  • xbt_client_whitelist
  • xbt_files_users
  • xbt_snatched
  • Edit ocelot.conf to your liking.

  • Build Ocelot:

      ./configure
      make
      make install
    

Running Ocelot

Run-time options:

  • -c <path/to/ocelot.conf> - Path to config file. If unspecified, the current working directory is used.
  • -v - Print queue status every time a flush is initiated.

Signals

  • SIGHUP - Reload config
  • SIGUSR1 - Reload torrent list, user list and client whitelist

ocelot's People

Contributors

tommmmmmmmmc 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.