You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Neo4j社区版3.2.0默认密码neo4j无法登录求助

Fixing Neo4j Community Edition Authentication Failure on AWS Marketplace

Hey there, let's sort out this login issue you're having. AWS Marketplace's Neo4j Community Edition instances don't use the default neo4j/neo4j credentials—they generate a unique initial password instead. Here are reliable ways to get logged in or reset your password without disabling authentication:

Option 1: Retrieve the Auto-Generated Initial Password

First, check the instance's initialization logs for the default password created during deployment:

  1. SSH into your EC2 instance using your AWS key pair.
  2. Run this command to pull the cloud-init logs:
    cat /var/log/cloud-init-output.log
    
  3. Search through the log for keywords like "neo4j password" or just "password"—you'll find the auto-generated initial password here. Use this to log into the Neo4j browser.

Option 2: Reset the Neo4j Password Directly on the Instance

If you can't find the initial password or it's no longer valid, you can reset it manually:

  1. Stop the Neo4j service first:
    sudo systemctl stop neo4j
    
  2. Start Neo4j in console mode with authentication temporarily disabled (this only affects this session, not the permanent config):
    sudo neo4j console --dbms.security.auth_enabled=false
    
  3. Leave that terminal window open, and open a new SSH session to the same instance. Launch the Cypher shell:
    cypher-shell
    
    Press Enter when prompted for credentials—you'll log in without needing a password.
  4. Run this Cypher command to set a new password (replace your-secure-new-password with your desired password):
    ALTER USER neo4j SET PASSWORD 'your-secure-new-password';
    
  5. Exit the Cypher shell with :exit, then go back to the first terminal and press Ctrl+C to stop the console-mode Neo4j.
  6. Restart the Neo4j service with the original authentication-enabled config:
    sudo systemctl start neo4j
    
  7. Now you can log into the Neo4j browser using neo4j as the username and your new password.

Option 3: Verify Authentication Config (Double-Check)

Just to make sure authentication is properly enabled (since you don't want to disable it):

  1. Open the Neo4j config file:
    sudo nano /etc/neo4j/neo4j.conf
    
  2. Look for the line dbms.security.auth_enabled—it should be set to true (this is the default, so it's likely already correct).
  3. Save and exit the file, then restart Neo4j if you made any changes:
    sudo systemctl restart neo4j
    

内容的提问来源于stack exchange,提问作者Senthil

火山引擎 最新活动