WebGoat开发版配置

来源:互联网 发布:芬尼根的守灵夜 知乎 编辑:程序博客网 时间:2024/06/05 07:09

1.下载安装jdk,git,maven并配置环境变量
jdk1.8安装
git安装
maven安装
2.全程开vpn,使用git下载webgoat服务器代码和课程代码,命令如下:
git clone https://github.com/WebGoat/WebGoat.git
git clone https://github.com/WebGoat/WebGoat-Lessons.git
3.在本地控制台进入到之前下载后的WebGoat目录进入webgoat文件夹下,如下图所示:
这里写图片描述

4.输入git checkout 7.1命令

5.输入mvn clean compile install, 刚开始的时候,它会先下载一些东西,时间很长,之后开始编译,第二次之后的编译就会非常快了

6.进入到WebGoat-Lessons目录下

7.输入git checkout develop,输入git checkout 7.1报错

8.输入mvn package 编译,第一次很慢

9.输入xcopy “target\plugins*.jar” “..\WebGoat\webgoat-container\src\main\webapp\plugin_lessons\”将编译好的课程文件复制到webgoat中

10.输入cd .. 返回上一目录。这里文档提供了三种方法运行服务,我选择第一种使用Maven Tomcat插件做示范
11.输入cd WebGoat进入WebGoat目录
12.输入mvn -pl webgoat-container tomcat7:run-war安装插件,并开启服务,第一次时很慢,结果如下:

13.Enjoy

原创粉丝点击