1、sqli-labs下载:https://github.com/Audi-1/sqli-labs
2、安装一台centos
3、在centos上关闭防火墙和关闭selinux
systemctl stop firewalld.service 关闭防火墙
systemctl disable firewalld.service 设置防火墙开机不启动
vim /etc/selinux/config 打开在最后添加SELINUX=disable
reboot重启 iptables -F 清空防火墙规则
4、安装LAMP环境
yum install -y httpd php-mysql php php-gd mariadb-server mariadb