Coder Social home page Coder Social logo

minernat's Introduction

minernat

ETH矿池代理中转程序zosminer的客户端,用于安装在矿机本地局域网,为所有矿机提供统一入口,上级对接zosminerws协议端口,建立加密伪装隧道。 采用Golang语言开发,性能稳定优异。支持安装为系统服务,开机自启动,支持进程守护运行,程序自动调整连接数限制。Telegram交流群 点击加入

系统要求

  • 系统类型:Linux: Debian 9及以后, Centos 7及以后, Ubuntu 12及以后。
  • 一台局域网Linux机器,矿机可以访问到它。

安装方式

重要提示:因为会安装为系统服务,自动调整系统ulimit连接数限制,所有安装方式都需要root账号权限。

Linux 安装

  1. linux 点击下载 linux-minernat.tar.gz
  2. 执行:mkdir /etc/minernat,创建安装目录。
  3. 把文件linux-minernat.tar.gz放在目录/etc/minernat下面。
  4. 执行:cd /etc/minernat && tar zxfv linux-minernat.tar.gz && ./minernat install
  5. 修改配置文件/etc/minernat/minernat.toml ,配置zosminer端口, 假设你zosminer服务器IP是122.123.0.1,代理端口是8888,协议tls,那么配置文件里面的zosminer的值改成tls://122.123.0.1:8888
  6. 安装完毕,记得启动哟。启动命令:systemctl start minernat
  7. 中转端口,默认是:15555,矿机连接的就是这个端口,可以通过修改/etc/minernat/minernat.toml里面的配置listen修改这个端口。

具体程序的启动停止重启状态命令如下:

  1. 程序启动:systemctl start minernat
  2. 程序停止:systemctl stop minernat
  3. 程序重启:systemctl restart minernat
  4. 程序状态:systemctl status minernat
  5. 启动日志:journalctl -u minernat -e
  6. 程序卸载:/etc/minernat/minernat uninstall

更新程序

更新程序只需要把下载的文件压缩包,解压的二进制文件minernat覆盖掉/etc/minernat/minernat,然后重启程序即可,程序重启:systemctl restart minernat

windows 安装

  1. windows 点击下载 windows-minernat.tar.gz
  2. 新建:d:\minernat,创建安装目录。
  3. 把文件windows-minernat.tar.gz放在目录d:\minernat下面。
  4. 执行解压,得到:minernat.exe。
  5. 打开命令提示符:输入:d:
  6. cd minernat
  7. .\minernat.exe init
  8. 修改配置文件d:\minernat\minernat.toml ,配置zosminer端口, 假设你zosminer服务器IP是122.123.0.1,ws端口是8888,那么配置文件里面的zosminer的值改成ws://122.123.0.1:8888
  9. 安装完毕,双击minernat.exe就启动了,不要关闭窗口。
  10. 中转端口,默认是:15555,矿机连接的就是这个端口,可以通过修改d:\minernat\minernat.toml里面的配置listen修改这个端口。

windows 安装为系统服务

  1. windows 点击下载 windows-minernat.tar.gz
  2. 新建:d:\minernat,创建安装目录。
  3. 把文件windows-minernat.tar.gz放在目录d:\minernat下面。
  4. 执行解压,得到:minernat.exe。
  5. 打开命令提示符:输入:d:
  6. cd minernat
  7. 执行.\minernat.exe install,就把minernat安装为系统服务,开机自动启动。
  8. 修改配置文件d:\minernat\minernat.toml ,配置zosminer端口, 假设你zosminer服务器IP是122.123.0.1,ws端口是8888,那么配置文件里面的zosminer的值改成ws://122.123.0.1:8888
  9. 安装完毕,记得启动哟。启动命令:net start minernat
  10. 中转端口,默认是:15555,矿机连接的就是这个端口,可以通过修改d:\minernat\minernat.toml里面的配置listen修改这个端口。

具体程序的启动停止卸载命令如下:

  1. 程序启动:net start minernat
  2. 程序停止:net stop minernat
  3. 程序卸载:d:\minernat\minernat.exe uninstall

更新程序

更新程序只需要把下载的文件压缩包,解压的二进制文件minernat.exe覆盖掉d:\minernat\minernat.exe,然后重启程序即可。

问题交流

如果您遇到使用问题,欢迎加入telegram交流群 点击加入 寻求帮助。

更新日志

v2.1

  • 优化连接。
  • 支持更多协议。

v2.0

  • 兼容协议也可以使用了。
  • 可以通过代理连接zosminer了。
  • 新增windows支持。

v1.0

  • 首发

minernat's People

Contributors

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