Skip to content

Instantly share code, notes, and snippets.

@mlocher
Last active August 29, 2015 14:06
Show Gist options
  • Save mlocher/4f3dcb35c411f7e5d4bd to your computer and use it in GitHub Desktop.
Save mlocher/4f3dcb35c411f7e5d4bd to your computer and use it in GitHub Desktop.
Neo4j - Download and start Neo4j on e.g. a Codeship build box
#/bin/bash
VERSION="2.1.4"
PWD=`pwd`
cd ~/
wget -O neo4j-community.tar.gz http://neo4j.com/artifact.php?name=neo4j-community-${VERSION}-unix.tar.gz
tar -xzf neo4j-community.tar.gz
# configure neo4j to run on testing ports (7476 + 7475)
sed -i s/7474/7476/g ~/neo4j-community/conf/neo4j-server.properties
sed -i s/7473/7475/g ~/neo4j-community/conf/neo4j-server.properties
~/neo4j-community/bin/neo4j start
cd $PWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment