{"id":78,"date":"2013-07-23T00:40:44","date_gmt":"2013-07-22T22:40:44","guid":{"rendered":"http:\/\/andreikucharavy.com\/L3Cache\/?p=78"},"modified":"2015-10-29T15:43:48","modified_gmt":"2015-10-29T14:43:48","slug":"using-neo4j-server-on-a-development-machine","status":"publish","type":"post","link":"https:\/\/andreikucharavy.com\/L3Cache\/using-neo4j-server-on-a-development-machine\/","title":{"rendered":"Installing and using a neo4j server on a CentOS server"},"content":{"rendered":"<p>First of all, if you have weird errors while trying to install neo4j server on a machine running under CentOS, it looks like you are trying to perform installation from a folder within your<em> $HOME<\/em> directory. Which the newly created <em>neo4j<\/em>\u00a0user\u00a0(if you do a default installation) won&#8217;t be able to access. In order to avoid it, unpack the <em>neo4j-community-x.x.x<\/em> package to the \/opt\/ directory and<\/p>\n<p>You will also need to install the Oracle Java to support the neo4j installation. A good explanation of how to do it can be found on the <a href=\"http:\/\/askubuntu.com\/questions\/56104\/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre\">ubuntu stack overflow<\/a>. To sum up:<\/p>\n<pre>sudo apt-get install python-software-properties\r\nsudo add-apt-repository ppa:webupd8team\/java\r\nsudo apt-get update\r\nsudo apt-get install oracle-java8-installer\r\nsudo apt-get install oracle-java8-set-default\r\n<\/pre>\n<p>Only install oracle java as default if you don&#8217;t have other programs relying on the<\/p>\n<p>If you meet the &#8220;java heap out of space error&#8221;, what you have to do is to go to the $NEO4J_HOME directorty (where you&#8217;ve installed the neo4j files), then to config and then in the neo4j-wrapper.conf file edit the following lines:<\/p>\n<pre>wrapper.java.initmemory = 64\r\nwrapper.java.maxmemory = 512 (increase to 1-4 Gb if you have &gt;4Gb of RAM)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>First of all, if you have weird errors while trying to install neo4j server on a machine running under CentOS, it looks like you are trying to perform installation from a folder within your $HOME directory. Which the newly created neo4j\u00a0user\u00a0(if you do a default installation) won&#8217;t be able to access. In order to avoid <a class=\"read-more\" href=\"https:\/\/andreikucharavy.com\/L3Cache\/using-neo4j-server-on-a-development-machine\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[18,9,19],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-prog","tag-graph-databases","tag-programming","tag-python"],"_links":{"self":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/78"}],"collection":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":7,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/78\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}