From 6a44332fbcc45ed1d7889312293af17283a71ac4 Mon Sep 17 00:00:00 2001 From: ben stear Date: Tue, 26 Dec 2023 11:53:23 -0500 Subject: [PATCH] Create launch_on_server.md --- scripts/launch_on_server.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/launch_on_server.md diff --git a/scripts/launch_on_server.md b/scripts/launch_on_server.md new file mode 100644 index 0000000..ad6e607 --- /dev/null +++ b/scripts/launch_on_server.md @@ -0,0 +1,20 @@ +# Instructions on how to launch and query Petagraph on the Taylor server + + +#### 1. ssh into the server: +`$ ssh RESLNTAYLORD01.research.chop.edu` +#### 2. start the database: +This will start the database in the console. This allows you to see the status and updated logs of the running dataabase right in the terminal. +`$ neo4j-admin server console` +#### 3. open a new terminal and ssh into the server again, and show that the database is running: +`$ neo4j-admin server status` + +output should look like this: `Neo4j is running at pid 2514457`. +You can now invoke the `cypher-shell` tool by doing `$ cypher-shell` and enter cypher statements in the terminal. +Remember to end cypher statements with a semicolon. Type `:exit` to exit the `cypher-shell`. + +#### 4. If you want to launch a jupyter notebook or r studio notebook you can just use regular port forwarding method by doing the following: +4a. Do `jupyter lab --no-browser --port=8890` on the Taylor server. Don't use port 7474 b/c thats the default for the neo4j database. +4b. Do `ssh -N -f -L localhost:8890:localhost:8890 RESLNTAYLORD01.research.chop.edu`. If there are no errors it shoud've worked. +4c. Copy the URL that the `jupyter lab --no-browser --port=8890` command gave and paste it into a browser window. It should open a jupyter lab page. Now you can use Python/R neo4j plugins to interact with the database +The URL to connect to is: