1.搭建LAMP平台
搭建方法:
https://blog.csdn.net/weixin_46162146/article/details/104374666
2.将下载好的DVWA文件放入页面目录下 /var/www/html
#进入网页存放目录
[root@localhost ~]# cd /var/www/html/
#进入DVWA配置文件
[root@localhost html]# cd DVWA/config/
#修改文件名
[root@localhost config]# cp config.inc.php.dist config.inc.php
#修改配置文件
[root@localhost config]# vi config.inc.php
$_DVWA = ar