Using Source

    You will need a copy of the nats-server source locally and will need to be in the jetstream branch.

    1. nats-server -js

    Output

    1. nats-server -js -sd /tmp/test

    Output

    1. // enables jetstream, an empty block will enable and use defaults
    2. // jetstream data will be in /data/nats-server/jetstream
    3. store_dir: "/data/nats-server"
    4. max_memory_store: 1073741824
    5. // 10GB
    6. }