-
Install Go
-
Clone the repo and cd into project folder:
cd cs-425-mp-3 -
Run the setup script with the following command (server id can be any number and is used only for easy identification when retrieving logs from remote servers)
sh setup.sh <server-id>Please make sure there isn't a folder named
logunder your home directory. -
Run the program with
go run main.go -
The program will ask you whether it should be started as a bootstrap server.
Starting the program as a bootstrap server means the current vm will also act as an introducer.
-
Follow the prompts to finish starting up services
- By default the log server (used for retrieving logs from remote machines) will run on port 8000. To use a different port, update the
LOG_SERVER_PORT=portentry in /UserHome/config.txt - Program log file is by default named
log(configured in config.txt) and stored under the home directory. When the program starts, it will truncatelog(overwriting logs from previous run). - Please make sure IP address of introducer is properly configured for the membership service