https://github.com/4admin2root/my_tcpconn
1.1K
todo: docs bootstrap swagger codeclimate
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;
# }
# }
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
docker-compose up --build
linux : /ansible/README.md
you can also run it in windows but without ansible playbook
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

Content type
Image
Digest
Size
195.2 MB
Last updated
about 9 years ago
docker pull 4admin2root/my_tcpconn