Running multiple instances of Stash can be done by specifying both the -c
switch to denote an alternate config.yml
file path, and the --p
switch to denote a unique port number.
Step-by-step Linux guide to running multiple instances of Stash:
- Create a new directory for the alternate Stash configuration, referred to here as
NEW_DIRECTORY_LOCATION
. - Choose a unique port number that does not conflict with other local Stash instances, referred to here as
NEW_PORT_NUMBER
. - Initiate Stash to assume a fresh installation by running
./stash-linux --port NEW_PORT_NUMBER -c NEW_DIRECTORY_LOCATION/config.yml
. - Complete the Stash Setup Wizard.
- Using a text editor, manually update
config.yml
to useNEW_PORT_NUMBER
. Find the lineport: 9999
and replace withport: NEW_PORT_NUMBER
. - This instance of Stash can now be accessed by running
./stash-linux -c NEW_DIRECTORY_LOCATION/config.yml