Giter Club home page Giter Club logo

pingmesh's Introduction

Pingmesh:用于数据中心网络延迟测量和分析的大规模系统

最终效果图

Image text

Image text

----后端配置(客户端和服务端时间必须准确)----

一、服务端(Centos7)

1.配置步骤
yum install -y golang

sudo yum install mariadb-servergo

sudo systemctl start mariadb
sudo systemctl enable mariadb

sudo systemctl status mariadb

mysql_secure_installation //初始化mariadb paswd:123456
sudo systemctl stop firewalld.service
setenforce 0

2.导入数据库表(pingmesh.sql)

3.编译(pingmesh-s-v1.1-GetResult.go/pingmesh-s-v1.1-GetHostIp.go)
go build pingmesh-s-v1.1-GetResult.go
go build pingmesh-s-v1.1-GetHostIp.go

4.运行
nohup ./pingmesh-s-v1.1-GetResult > output.log 2>&1 &
nohup ./pingmesh-s-v1.1-GetHostIp > output.log 2>&1 &

二、客户端

1.基础安装
yum install epel-release -y
yum install fping -y

2.编译后端(pingmesh-c-v1.1.go)
go build pingmesh-c-v1.1.go

3.运行
nohup ./pingmesh-c-v1.1 > output.log 2>&1 &

----前端配置----

修改参数pingmesh.py
conn = pymysql.connect(
host='172.19.129.11',
user='root',
password='123456',
db='ping',
charset='utf8'
)
部分

1.运行项目
python pingmesh.py
后台运行:nohup python pingmesh.py > pingmeshpy.log 2>&1 &

2.结果显示
访问http://127.0.0.1:9000

3.报错

ImportError: No module named flask yum install python-pip -y
pip install flask

ImportError: No module named pymysql
pip install pymysql

pingmesh's People

Contributors

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