Setting up Neo4j 2.0.1 Linux VM on Windows Azure
Join the DZone community and get the full member experience.
Join For Freeneo4j 2.0.1 has been released as a linux distribution on the windows azure vm depot . the distribution runs on ubuntu 12.04 lts kernel. follow the steps below to setup your windows azure vm.
navigate to windows azure management portal

click "virtual machines > images"

click "browse vm depot"

find neo4j 2.0.1 image

choose a storage account

choose a storage account and region and click the checkmark. wait for the vm image to finish copying. once it is finished, proceed to the next step.
click "register"

once the status of the vm image says "pending registration" click "register"
register the vm image

confirm the settings and click the checkmark.
create a virtual machine

after registering the vm image, click "virtual machine instances" and then click "create virtual machine".
click "from gallery"

click "from gallery" to pull up your registered vm images.
create vm from your images

click "my images", browse to your neo4j 2.0.1 community image you created in the previous steps and click the checkmark.
configure virtual machine

choose a name for your virtual machine. choose a username you will remember so that you can ssh into the machine to configure additional neo4j server settings. uncheck "upload a compatible ssh key for authentication" and check "provide a password". choose a password you can remember. click the checkmark once your done to continue.
finalize vm configuration

configure additional options and click the checkmark.
configure endpoints

make sure to configure your endpoints exactly as it is in the screenshot. you must configure port 7474, for both in and out, to be able to communicate with the neo4j browser externally.
note: your neo4j browser for this database will be open to the public. make sure you take additional steps and precautions to secure your server.
provision your vm

wait for your virtual machine to finish provisioning. once finished, proceed to the next step.
get your dns name for your vm

navigate to your newly provisioned virtual machine dashboard and copy the dns name.
navigate to the neo4j 2.0 browser

copy and paste the dns name of your virtual machine into a new browser window and add port 7474 to the end of the url. like this: http://[dns-name]:7474/
that's it. your virtual machine is all setup. enjoy!
to ssh into your new virtual machine, use either putty on windows or on mac you can use ssh in the terminal. use the username and password you provided in the virtual machine setup. to modify the neo4j configurations you can find the configuration folder in the /etc/neo4j location from the root. this distribution runs neo4j as a service, when you restart the vm the neo4j server will automatically start. if you need more disk space, make sure to change the default database location to a different location. you can attach multiple virtual hard disks to your windows azure vm with additional space if needed. the os image has about 18gb of space left for your database, if you need more than that then please consider setting up another disk with more space.
Published at DZone with permission of Kenny Bastani, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Working on an Unfamiliar Codebase
-
Building and Deploying Microservices With Spring Boot and Docker
-
What Is mTLS? How To Implement It With Istio
-
How To Design Reliable IIoT Architecture
Comments