# Install

CrushTest is one zip for Windows, macOS and Linux: **[CrushTest27.zip](https://www.crushftp.com/early27/CrushTest/CrushTest27.zip)**.

| File | What it is |
|---|---|
| `CrushTest.jar` | CrushTest itself |
| `lib/CrushMFT.jar` | the client library: CrushMFT 27's own SFTP, FTP and HTTP clients |
| `CrushTest.exe` | the Windows launcher |
| `CrushTest.app` | the macOS app (signed and notarized) |
| `CrushTest.command`, `crushtest.sh` | the macOS and Linux start scripts |
| `crushtest_init.sh` | a load agent or monitor as a Linux service |
| `CrushTest.conf`, `README.txt` | the start scripts' settings, a short guide |

## Java

Java 21 or newer, 25 recommended, on every machine that runs CrushTest (the controller, each load agent, each monitor).

## Windows

Unzip, then start `CrushTest.exe`. CrushTest opens in its own window.

## macOS

Unzip, then open `CrushTest.app`. `CrushTest.command` (double-click) or `./crushtest.sh` in Terminal start the same CrushTest without the app.

## Linux

Unzip, then run `./crushtest.sh` and open the address it prints in a browser on the same machine. The UI answers only on 127.0.0.1 unless you start the controller for other machines (below).

## Where CrushTest keeps its files

In the folder `CrushTest.jar` is in, when CrushTest may write there; otherwise in `CrushTest` in your home folder. `-Dcrushtest.home=FOLDER` names another. What is in it: [Files](Files.md). Keep the whole folder when you move or restore CrushTest: the license is bound to this controller's key in it.

## The controller for other machines

`crushtest controller --bind ADDRESS --port N` serves the UI to other machines over HTTPS (a key and certificate made for this install the first time). Set its password first with `crushtest set-password`. Five wrong passwords from one address within ten minutes lock that address out for ten minutes.

## A load agent or monitor as a Linux service

On each extra load machine (see [Load machines and monitors](Load-Machines.md)):

```
sudo AGENT_ARGS="--allow server:22,server:443" ./crushtest_init.sh install
```

It installs a systemd service `crushtest-agent` that runs as the account that ran `sudo` (or `RUN_USER=account`), never as root unless `RUN_USER=root RUN_USER_ROOT_OK=yes`. The agent's pairing code is in `journalctl -u crushtest-agent` and in `logs/crushtest_agent.out`, readable only by that account. For a monitor of the CrushFTP server on the same machine: `MODE=monitor AGENT_ARGS="--monitor-find CrushFTP"`. `crushtest_init.sh uninstall` removes the service.

## Updating

Unzip the new version over the old folder (or into a new one and copy your files across). Your servers, profiles, results and license stay.
