Score
0
Watch 11 Star 30 Fork 7

zhexiao27 / mnetPythonApache-2.0

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
一个基于Softflowd,Kafka,Spark Streaming,Elk,Django开发的网络数据流监控分析后台, 支持Netflow V9与Netflow V5。可以对进入和流出的流量进行异常分析并执行自动化漏洞修复。 spread retract

  • Python 62.4%
  • JavaScript 19.2%
  • HTML 14.5%
  • Shell 3.5%
  • CSS 0.4%
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

mnet

后端

安装memcached

> sudo apt-get install memcached

安装Mysql mysqlclient必备的依赖

> sudo apt-get install libmysqlclient-dev

安装package

> pip install -r requirements.txt

pre-commit 安装

> pre-commit install
> pre-commit autoupdate

运行服务器

> ./run.sh server
> ./run.sh migration_all
> ./run.sh migrate_all

# 单独app操作
> ./run.sh migration netflow
> ./run.sh migrate netflow

前端

安装SASS

1. install ruby:
    https://github.com/oneclick/rubyinstaller2/releases/download/2.4.1-2/rubyinstaller-2.4.1-2-x64.exe

2. open terminal and install sass:
    gem install sass
    sass -v

安装项目

1. clone 项目:
    git clone https://github.com/zhexiao/mnet.git

2. run sass:
    cd web
    sass --watch sass:css --no-cache --style compressed

编程工具和运行

1. 安装pycharm专业版
2. 右键web/app/index.html -> open in browser

挂载到nginx

> sudo apt-get install nginx
> sudo vim /etc/nginx/sites-enabled/default
------
# if the static file encode has problem, set it
sendfile off;
root /vagrant/mnet/web;
------

> sudo service nginx restart

Comments ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/zhexiao/mnet.git
git@gitee.com:zhexiao/mnet.git
zhexiao
mnet
mnet
master

Help Search