[Other doc versions]
[Doc downloads]
Hey! We're going to install Stash on Windows. There are a few steps, but we think you'll really like Stash once it's up and running.
Better check the Supported platforms page first; it lists the application servers, databases, operating systems, web browsers and JDKs that we have tested Stash with and recommend.
Atlassian only officially supports Stash running on x86 hardware and 64-bit derivatives of x86 hardware.
In a command prompt, run this:
java -version
The version of Java should be 1.6.0 or higher.
Windows uses the JAVA_HOME environment variable to find Java. To check that, in a command prompt, run:
echo %JAVA_HOME%
You should see a path to the Java install location that does not contain spaces.
In a command prompt, run:
git --version
The version of Git should be 1.7.6 or higher.
Download Stash from the Atlassian download site.
Extract the downloaded file to an install location. The path to the extracted directory is referred to as in these instructions.<Stash installation directory>
You should not locate your Stash home directory inside the
— they should be entirely separate locations. If you do put the home directory in the <Stash installation directory> it will be overwritten, and lost, when Stash gets upgraded. And by the way, you can't use the same Stash home directory for multiple instances of Stash.<Stash installation directory>
Stash uses the STASH_HOME variable to specify the location of your home directory.
To set that, edit the file <Stash installation directory>\bin\setenv.bat, uncomment the STASH_HOME line and add the absolute path to your home directory. Here's an example of what that could look like when you're done:
If you already have a database you want to use, now is the time to tell Stash about it, before starting Stash for the first time. If you try to do this later, you'll lose data. See Connecting Stash to an external database. Just so you know, we're working on database migration for a future version of Stash.
If you do nothing about this now, Stash will happily use its internal database.
In a command prompt, change directory to <Stash installation directory>\bin\ and run this:
start-stash.bat
In your browser, go to http://localhost:7990 and run through the Setup Wizard.
You can postpone setting up JIRA integration until later if you wish; see Configuring JIRA integration in the Setup Wizard .
Configure your email server so users can receive a link from Stash that lets them generate their own passwords. See Setting up your mail server.
Configure access to Stash, using HTTP over SSL, if your data is sensitive and Stash is exposed to the internet. See Securing Stash with HTTPS .
In a command prompt, change directory to <Stash installation directory>\bin\ and run this:
stop-stash.bat