Neo4j things - youdar/How-to GitHub Wiki
Often one wants to test several graph models to do that do:
- stop neo4j:
$NEO4J_HOME/bin/neo4j stop - In
$NEO4J_HOME/conf/neo4j.confadddbms.active_database=graph_test.db
under#dbms.active_database=graph.db - Then start Neo4j:
$NEO4J_HOME/bin/neo4j stop
Set EC2 Linux machine on AWS following Neo4j recommendations.
Depending on your company security, your company DevOpts might need to setup the machine and NetOpts need to setup
the proper connection to the production environment.
The machine need to have Web certificate otherwise some browsers might have issue connecting to the Neo4j
Setting Neo4j on EC2
-
- CentOS link
-
Create a web certificate (This process did not work and we issued a Jira to find an alternative)
- Neo4j related issues: Getting Certificates for Neo4j with LetsEncrypt
- If having issues the:
- yum remove epel-release
- yum clean all
- sudo yum -y install yum-utils
- sudo yum install
- yum-config-manager --enable rhui-us-west-2-rhel-server-extras rhui-us-west-2-rhel-server-optional
- sudo yum install certbot
- If having issues the:
- Certificate is stored at /etc/letsencrypt
- To Renew certificate run sudo certbot renew
- Neo4j related issues: Getting Certificates for Neo4j with LetsEncrypt
-
Initial password setup
-
User creation in Cypher (Can do it from Cypher after have ability to log into interface)
- This can be done using commands or the UI (see UI image in references)
- For Community Edition
- List of commands:
- Create a user: CALL dbms.security.createUser('user_name', 'temp_password, true)
- Add roles: (For community additions all users are admins) CALL dbms.security.addRoleToUser('user_role', 'user_name')
- Change password: CALL dbms.security.changePassword('...')
- List users: CALL dbms.security.listUsers()
- To switch users from GUI: :server disconnect
-
After installation update conf file at /etc/neo4j/neo4j.conf
- Note
- dbms.security.auth_enabled=true otherwise there is no ability to set users
- When upgrading you might need to do:
- Uncommenting dbms.allow_upgrade=true after upgrades,
- follow by sudo service neo4j restart
- then comment back
- To Allow remote web connection:
- Uncomment dbms:
- dbms.connectors.default_listen_address=0.0.0.0
- dbms.connector.https.enabled=true
- connector.https.listen_address=:7473
- Need to restart after this operation
- Note
-
Basic operations:
- $ sudo service neo4j start
- $ sudo service neo4j stop
- $ sudo service neo4j restart
- $ sudo service neo4j status
- On Mac:
- $ <NEO4J_HOME>/bin/neo4j start -
Try to connect on https://host_name:7473/browser/