<commit_before>One recommended way to use ToroDB Stampede is through the binary distribution. It means that one precompiled distribution is downloaded and then executed using command tools.

# Linux/macOS

Given that previous prerequisites are met, the only step needed to launch ToroDB Stampede is the download of the binary distribution from the next [link](http://todo).

```
$ wget http://todo

$ tar xjvf <stampede-binary>.tar.bz2

$ torodb-stampede-<version>/bin/torodb-stampede
```

The main problems at this step is that MongoDB or PostgreSQL has a different user/password than expected, to avoid that problem configuration files can be provided.

```
$ torodb-stampede-<version>/bin/torodb-stampede --toropass-file <postgres-credentials-file> --mongopass-file <mongo-credentials-file>
```

## As a Linux systemd service

All the following commands must be run as root. Precede them by sudo command if you are running in Ubuntu.

First you have to create a symbolic link to `bin/torodb-stampede` in `/usr/bin` folder:

```
$ ln -s "`pwd`/bin/torodb-stampede" /usr/bin/.
```

You have to create the system user `torodb`:

```
$ useradd -M -d "$(dirname "$(dirname "`pwd`/bin/torodb-stampede")")" torodb
```

Now copy the file `systemd/torodb-stampede.service.sample` to `/lib/systed/system` folder:

```
$ cp systemd/torodb-stampede.service.sample /lib/systed/system/.
```

Enable and start the newly created ToroDB Stampede service:

```
$ systemctl enable torodb-stampede

$ systemctl start torodb-stampede
```

To view logs of ToroDB Stampede service:

```
$ journalctl --no-pager -u torodb-stampede
```

Following logs:

```
$ journalctl --no-pager -u torodb-stampede -f
```

View all logs:

```
$ journalctl --no-tail --no-pager -u torodb-stampede
```

To stop ToroDB Stampede service:

```
$ systemctl stop torodb-stampede
```

# Windows

TBD
<commit_msg>Fixed binaries installation document chapter<commit_after>One of the recommended ways to use ToroDB Stampede is through the binary distribution. It means that one precompiled distribution is downloaded and then executed using command tools.

# Linux/macOS

Given that [previous requirements](previous-requirements.md) are met, the only step needed to launch ToroDB Stampede is to download distribution from the next [link](http://todo) and execute it.

```no-highlight
$ wget http://todo

$ tar xjvf <stampede-binary>.tar.bz2

$ torodb-stampede-<version>/bin/torodb-stampede
```

The main problems at this step is that MongoDB or PostgreSQL has a different user/password than expected, to avoid that problem configuration files can be provided (among the use of `.toropass` file at the home path).

```no-highlight
$ torodb-stampede-<version>/bin/torodb-stampede --toropass-file <postgres-credentials-file> --mongopass-file <mongo-credentials-file>
```

## As a Linux systemd service

The steps described must be executed as root or using sudo command is Ubuntu is being used.

```no-highlight
$ ln -s "`pwd`/bin/torodb-stampede" /usr/bin/.

$ useradd -M -d "$(dirname "$(dirname "`pwd`/bin/torodb-stampede")")" torodb

$ cp systemd/torodb-stampede.service.sample /lib/systed/system/.
```

Enable and start the newly created ToroDB Stampede service:

```no-highlight
$ systemctl enable torodb-stampede

$ systemctl start torodb-stampede
```

To stop ToroDB Stampede service:

```no-highlight
$ systemctl stop torodb-stampede
```

### Accessing to logs

To view logs of ToroDB Stampede service:

```no-highlight
$ journalctl --no-pager -u torodb-stampede
```

Following logs:

```no-highlight
$ journalctl --no-pager -u torodb-stampede -f
```

View all logs:

```no-highlight
$ journalctl --no-tail --no-pager -u torodb-stampede
```

# Windows

TBD

{'fraction_non_alphanumeric': 0.11652314316469321, 'fraction_numerical': 0.0005382131324004305, 'mean_word_length': 4.264872521246459, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4615937', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1202, 'n_words': 411}