Giter VIP home page Giter VIP logo

cping's Introduction

cPing

简介

多地Ping、MTR部署工具,需要先运行Server端再运行Client端,客户端自动注册到服务端

截图

image image image

编译

客户端编译

go build client.go

服务端编译

go build server.go

或者直接Make编译,进入cPing目录后

Make

使用

客户端运行时会自动注册到服务端,需要修改conf.json文件

{
"name": "湖南电信",
"server": "http://192.168.88.9:7789",
"client": "http://192.168.88.9:7788",
"token": "31586"
}

server为服务端地址,client为客户端地址,token为客户端密钥

docker使用

拉取镜像

docker pull csznet/cping:latest

启动服务端

docker run -d -p 7789:7789 --env mode=server csznet/cping:latest

启动客户端

docker run -d -p 7788:7788 --env mode=client -v $(pwd)/c.json:/app/conf.json csznet/cping:latest

其中-v $(pwd)/c.json:/app/conf.json代表将当前目录下的c.json作为客户端配置文件

cping's People

Contributors

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