[Other doc versions]
[Doc downloads]
Hey! We're going to install Stash on a Linux box, or a Mac. 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 terminal, run this:
java -version
The version of Java should be 1.6.0 or higher.
In a terminal, run this:
echo $JAVA_HOME
You should see a path like /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/.
In a terminal, run this:
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 the in these instructions.<Stash installation directory>
The Stash home directory is where your Stash data is stored.
Create your Stash home directory (without spaces in the name), and then tell Stash where you created it by editing the <Stash installation directory>/bin/setenv.sh file – 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:
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'll need separate Stash home directories if you want to run multiple instances of Stash.<Stash installation directory>
In a terminal, change directory to <Stash installation directory> and run this:
bin/start-stash.sh
In your browser, go to http://localhost:7990 and run through the Setup Wizard. 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.
Now is the time to set up your users in Stash, and to tell Stash about any existing repositories you have. Please the following pages for the details:
For production environments we recommend that you configure the additional aspects below. These are not necessary when installing for evaluation purposes.
In a terminal, change directory to <Stash installation directory> and run this:
bin/stop-stash.sh