Public | Automated Build

Last pushed: 2 months ago
Short Description
https://github.com/4admin2root/my_tcpconn
Full Description




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 
    ```text
    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



Docker Pull Command
Owner
4admin2root
Source Repository

Comments (0)