[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.
Have you got the version of Java that Stash needs?
In a terminal, run this:
java -version
The version of Java should be 1.6.0 or higher.
Does the system know where to find Java?
In a terminal, run this:
echo $JAVA_HOME
You should see a path like /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/.
Have you got the version of Git that Stash needs?
In a terminal, run this:
git --version
The version of Git should be 1.7.6 or higher.
Now we're getting somewhere!
<Stash installation directory> in these instructions.Tell Stash where to store your data.
<Stash installation directory> — 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.Edit the file <Stash installation directory>/bin/setenv.sh, 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:
In a terminal, change directory to <Stash installation directory>/bin/ and run this:
start-stash.sh
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.
In a terminal, change directory to <Stash installation directory>/bin/ and run this:
stop-stash.sh