Pingmesh:用于数据中心网络延迟测量和分析的大规模系统
最终效果图
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