Update README and simply the java command to one with optional arguments

This commit is contained in:
Nanne Baars 2018-05-29 22:16:29 +02:00
parent 4691bc5fd5
commit 0de784eb32

View File

@ -34,22 +34,11 @@ first thing that all hackers claim.*
Download the latest WebGoat release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases) Download the latest WebGoat release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases)
```Shell ```Shell
java -jar webgoat-server-<<version>>.jar java -jar webgoat-server-<<version>>.jar [--server.port=8080] [--server.address=localhost]
``` ```
By default WebGoat starts at port 8080 in order to change this use the following property: By default WebGoat starts on port 8080 with `--server.port` you can specify a different port. With `server.address` you
can bind it to a different address (default localhost)
```Shell
java -jar webgoat-server-<<version>>.jar --server.port=9090
```
You can specify one of the following arguments when starting WebGoat:
```Shell
java -jar webgoat-server-<<version>>.jar --server.port=9090 --server.address=x.x.x.x
```
This will start WebGoat on a different port and/or different address.
## 2. Run using Docker ## 2. Run using Docker