漏洞管理平台

#### SEMF漏洞管理平台

基础环境安装

一,安装依赖

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y

二,安装python3

# yum install python3 -y # python3 -V**

三,安装erlang
**wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm

rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
erl -version

四,安装Rabitmq

cd /tmp
# wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9-1.-el7.noarch.rpm # 下载

yum install rabbitmq-server-3.6.9-1.el7.noarch.rpm -y
service rabbitmq-server start
rabbitmq-plugins enable rabbitmq_management

五,rabbitmq基本操作

rabbitmqctl add_user admin admin
rabbitmqctl add_vhost semf   
rabbitmqctl set_user_tags admin administrator 
rabbitmqctl set_permissions -p semf admin “.“ “.“ “.*”

六,安装nmap

# yum install nmap -y

七,防火墙设置

systemctl start firewalld.service
firewall-cmd —zone=public —add-port=5672/tcp —permanent
firewall-cmd —zone=public —add-port=15672/tcp —permanent
firewall-cmd —zone=public —add-port=8000/tcp —permanent
firewall-cmd —reload 
firewall-cmd —zone=public —list-ports 

八,安装SeMF

cd /opt
mkdir SeMF
cd SeMF/
yum install git -y
git clone https://gitee.com/gy071089/SecurityManageFramwork
cd SecurityManageFramwork/
ls
vim /opt/SeMF/SecurityManageFramwork/SeMF/settings.py
hi

九,安装依赖

cd /opt/SeMF/SecurityManageFramwork/
sudo python3 -m pip install -r requirements.txt
pip uninstall django(如何出现报错要降低版本)

十,初始化数据库

python3 manage.py makemigrations
python3 manage.py migrate 
python3 manage.py createsuperuser
 此处输入密码有复杂度要求,此处为登录SeMF界面的超管账户。

python3 cnvd_xml.py
python3 initdata.py
celery -A SeMF worker -l info
python3 manage.py runserver 192.168.8.15:8000

http://www.mamicode.com/info-detail-2939580.html