Skip to content

Commit

Permalink
Update server_software.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benstear authored Sep 10, 2024
1 parent 3b42de9 commit d7e08e5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/server_software.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pip freeze > requirements.txt
cat requirements.txt | xargs -n 1 pip install # this will continue if a package fails to install!
```

## Download Ollama
`curl -fsSL https://ollama.com/install.sh | sh`

## Download Java
https://developers.redhat.com/products/openjdk/downloads/rhel
Expand All @@ -27,10 +29,6 @@ get tarball: https://neo4j.com/deployment-center/?gdb-selfmanaged
(Permissions info: https://askubuntu.com/questions/528411/how-do-you-view-file-permissions)


## Download Ollama
curl -fsSL https://ollama.com/install.sh | sh


## Create dump of database
https://neo4j.com/docs/operations-manual/current/kubernetes/operations/dump-load/

Expand All @@ -53,10 +51,14 @@ Send to new server:
`sudo scp /neo4j/5/data/dumps/neo4j.dump [email protected]:/home/stearb/`

## Load new database
make sure to give proper permissions to the conf file on the new server, `sudo chmod -R 400 /opt/neo4j-community-5.23.0/conf/
`
make sure to give proper permissions to the conf file on the new server, `sudo chmod -R 400 /opt/neo4j-community-5.23.0/conf/`

Load database dump:
**`sudo bin/neo4j-admin database load --expand-commands system --from-path=/home/stearb/neo4j.dump`**
```
rm -rf data/databases/*
rm -rf data/transactions/*
sudo bin/neo4j-admin database load --expand-commands --overwrite-destination=true neo4j --from-path=/home/stearb/neo4j.dump
```



Expand Down

0 comments on commit d7e08e5

Please sign in to comment.