Sign inSign up

4admin2root/my_tcpconn

By 4admin2root

Updated about 9 years ago

https://github.com/4admin2root/my_tcpconn

Image
1

1.1K

4admin2root/my_tcpconn repository overview

Build Status Docs Build Status Code Climate Quality Gate

my_tcpconn

a tool for show tcp connection topology

todo: docs bootstrap swagger codeclimate

server config
  • install and start redis first

  • for nginx

pip install uwsgi
uwsgi -s /run/uwsgi.sock -w server:app
#   #nginx config file block
#     server {
#        listen       5000 default_server;
#        server_name  localhost;
#
#        location / { try_files $uri @yourapplication; }
#        location @yourapplication {
#                include      uwsgi_params;
#                uwsgi_pass   unix:/run/uwsgi.sock;
#       }
#   }
  • for gunicorn
pip install gunicorn
gunicorn -D -w 4 -b 10.9.5.11:5000 --access-logfile /tmp/access.log \
 --error-logfile /tmp/error.log server:app

  • for docker
docker-compose up --build
client install

linux : /ansible/README.md

you can also run it in windows but without ansible playbook

view topo.html ant chord.html

browser

http://{{SERVER_HOST}}:5000/topo.html

http://{{SERVER_HOST}}:5000/chord.html

http://{{SERVER_HOST}}:5000/bar.html

the graph is using netjsongraph d3.js echarts

Tag summary

Content type

Image

Digest

Size

195.2 MB

Last updated

about 9 years ago

docker pull 4admin2root/my_tcpconn