Created
January 7, 2016 21:41
-
-
Save chrisdkemper/b2ed13594160d4a70d34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Installing Neo4j on Ubuntu | |
#Add the Neo4j key to apt | |
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - | |
#Add the Neo4j repositories to apt | |
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list | |
apt-get update -y | |
apt-get install neo4j -y | |
#Edit this file | |
nano /etc/security/limits.conf | |
#Add the following lines to the file | |
root soft nofile 40000 | |
root hard nofile 40000 | |
#Save the file with `ctrl -x y` | |
nano /etc/pam.d/su | |
#Uncomment the line containing the following, or add it if needed | |
session required pam_limits.so | |
#Save the file with `ctrl -x y` | |
#Restart the server to make the changes stick | |
sudo shutdown -r now | |
#You'll be disconnected, that's fine | |
#SSH back into the server and start the service | |
service neo4j-service start | |
#If desired, you can use set the webserver address by editing neo4j-server.properties | |
#First Neo4j must be stopped | |
service neo4j-service stop | |
#Open the file | |
nano /etc/neo4j/neo4j-server.properties | |
#Uncomment the following line, ideally, replace 0.0.0.0 to your applications IP address. | |
org.neo4j.server.webserver.address=0.0.0.0 | |
#Enjoy Neo4j |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment