Multi-Identifier Router

mir-go

1. Usage

  • 首先调用脚本安装

    ./install.sh
  • 然后设置或者修改配置文件中的默认身份 => /usr/local/etc/mir/mirconf.ini

  • 接着调用 mirgen 设置或修改默认身份的密码

    • 验证或者设置:

      sudo mirgen
    • 修改默认身份的密码:

      sudo mirgen -rp
    • 如果旧版的密码是明文,可以通过 -oldPasswdNoHash 参数兼容

      sudo mirgen -rp -oldPasswdNoHash

1.1 直接启动

sudo mir

1.2 安装成系统服务并启动

# 安装成系统服务
sudo mird install

# 启动程序
sudo mird start

# 终止程序
sudo mird stop

# 查看程序状态 
sudo mird status

# 从系统服务中卸载 => 需要重新覆盖的时候先执行这个
sudo mird remove
  • 终端日志输出位置
    • Macos
      • /usr/local/var/log/mird.err
      • /usr/local/var/log/mird.log
    • Linux => /var/log/mird.log

关于启动后服务的日志如何输出 => https://blog.csdn.net/sinat_24092079/article/details/120676316

2. Install

  • 要提前装好 minlib,并且minlib与mir-go在同一目录下
git clone https://gitea.qjm253.cn/PKUSZ-future-network-lab/mir-go.git
cd mir-go
go mod tidy
sudo mkdir /usr/local/etc/mir
sudo cp mirconf.ini /usr/local/etc/mir/mirconf.ini

3.详细步骤

3.1 开启GOMODULE

go env -w GO111MODULE="on"

3.2 更新代码

拉取最新代码后,Goland会提示你检测到Go Moudule,点击Enabled即可。 注意:之后的environment可填可不填,需要填的话填写GOPROXY="https://gocenter.io"

3.3 修改Go Proxy

go env -w GOPROXY="https://gocenter.io"

再输入

go env

查看状态

3.4 更新go mod

go mod tidy

注意:minlib配置到此操作结束,mir-go配置还需要下面的步骤。

3.5 创建本地文件夹

sudo mkdir /usr/local/etc/mir

3.6 传入配置文件

sudo cp mirconf.ini /usr/local/etc/mir/mirconf.ini
Similar Resources

Pure is a fast radix-tree based HTTP router

Pure is a fast radix-tree based HTTP router

package pure Pure is a fast radix-tree based HTTP router that sticks to the native implementations of Go's "net/http" package; in essence, keeping the

Dec 1, 2022

Echo Inspired Stand Alone URL Router

Vestigo - A Standalone Golang URL Router Abstract Many fast Golang URL routers are often embedded inside frameworks. Vestigo is a stand alone url rout

Dec 1, 2022

Go HTTP router

violetear Go HTTP router http://violetear.org Design Goals Keep it simple and small, avoiding extra complexity at all cost. KISS Support for static an

Dec 10, 2022

xujiajun/gorouter is a simple and fast HTTP router for Go. It is easy to build RESTful APIs and your web framework.

gorouter xujiajun/gorouter is a simple and fast HTTP router for Go. It is easy to build RESTful APIs and your web framework. Motivation I wanted a sim

Dec 8, 2022

lightweight, idiomatic and composable router for building Go HTTP services

chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services

Jan 8, 2023

Router socks. One port socks for all the others.

Router socks. One port socks for all the others.

Router socks The next step after compromising a machine is to enumerate the network behind. Many tools exist to expose a socks port on the attacker's

Dec 13, 2022

:tongue: CleverGo is a lightweight, feature rich and high performance HTTP router for Go.

CleverGo CleverGo is a lightweight, feature rich and trie based high performance HTTP request router. go get -u clevergo.tech/clevergo English 简体中文 Fe

Nov 17, 2022

Fast and flexible HTTP router

Fast and flexible HTTP router

treemux - fast and flexible HTTP router Basic example Debug logging CORS example Error handling Rate limiting using Redis Gzip compression OpenTelemet

Dec 27, 2022

Fast, simple, and lightweight HTTP router for Golang

Sariaf Fast, simple and lightweight HTTP router for golang Install go get -u github.com/majidsajadi/sariaf Features Lightweight compatible with net/ht

Aug 19, 2022
Related tags
Bxog is a simple and fast HTTP router for Go (HTTP request multiplexer).

Bxog is a simple and fast HTTP router for Go (HTTP request multiplexer). Usage An example of using the multiplexer: package main import ( "io" "net

Dec 26, 2022
A high performance fasthttp request router that scales well
A high performance fasthttp request router that scales well

FastHttpRouter FastHttpRouter is forked from httprouter which is a lightweight high performance HTTP request router (also called multiplexer or just m

Dec 1, 2022
FastRouter is a fast, flexible HTTP router written in Go.

FastRouter FastRouter is a fast, flexible HTTP router written in Go. FastRouter contains some customizable options, such as TrailingSlashesPolicy, Pan

Sep 27, 2022
Go Router + Middleware. Your Contexts.

gocraft/web gocraft/web is a Go mux and middleware package. We deal with casting and reflection so YOUR code can be statically typed. And we're fast.

Dec 28, 2022
Go Server/API micro framework, HTTP request router, multiplexer, mux
Go Server/API micro framework, HTTP request router, multiplexer, mux

?? gorouter Go Server/API micro framework, HTTP request router, multiplexer, mux. ?? ABOUT Contributors: Rafał Lorenz Want to contribute ? Feel free t

Dec 16, 2022
A high performance HTTP request router that scales well

HttpRouter HttpRouter is a lightweight high performance HTTP request router (also called multiplexer or just mux for short) for Go. In contrast to the

Dec 28, 2022
High-speed, flexible tree-based HTTP router for Go.

httptreemux High-speed, flexible, tree-based HTTP router for Go. This is inspired by Julien Schmidt's httprouter, in that it uses a patricia tree, but

Dec 28, 2022
:rotating_light: Is a lightweight, fast and extensible zero allocation HTTP router for Go used to create customizable frameworks.
:rotating_light: Is a lightweight, fast and extensible zero allocation HTTP router for Go used to create customizable frameworks.

LARS LARS is a fast radix-tree based, zero allocation, HTTP router for Go. view examples. If looking for a more pure Go solution, be sure to check out

Dec 27, 2022
A powerful HTTP router and URL matcher for building Go web servers with 🦍

gorilla/mux https://www.gorillatoolkit.org/pkg/mux Package gorilla/mux implements a request router and dispatcher for matching incoming requests to th

Jan 9, 2023
An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.

ozzo-routing You may consider using go-rest-api to jumpstart your new RESTful applications with ozzo-routing. Description ozzo-routing is a Go package

Dec 31, 2022