繁体   English   中英

在现有AWS EC2实例上安装和查看Neo4j

[英]Installing and Viewing Neo4j on Existing AWS EC2 Instance

我正在尝试在现有EC2(Amazon linux)实例上安装neo4j的企业版。 到目前为止,我已经

wget“链接到企业”

解压文件

重命名并将文件夹移动到NEO4J_HOME

然后进入neo4j.properties的配置文件以进行以下更改:

# Enable shell server so that remote clients can connect via Neo4j shell.
remote_shell_enabled=true
# The network interface IP the shell will listen on (use 0.0.0 for all interfaces)
remote_shell_host=127.0.0.1
# The port the shell will listen on, default is 1337
remote_shell_port=1337

编辑克里斯托夫·威廉姆森(Christophe Willemsen)指出,由于我的原始错误,我当时忘记了重新启动服务器,但是在运行时仍然无法访问Web服务器。 为了更加清楚,我编辑了其余的帖子:

我去了neo4j-server.properties并没有评论:

org.neo4j.server.webserver.address=0.0.0.0

并启动服务器

NEO4J_HOME/bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...WARNING: not changing user
process [28557]... waiting for server to be ready..... OK.
http://localhost:7474/ is ready.

检查状态:

NEO4J_HOME/bin/neo4j status
Neo4j Server is running at pid 28557

我可以运行外壳程序,但是当我转到localhost 7474时仍然无法连接

任何帮助将是感激的。 我发现的唯一教程或帮助假定我是从头开始创建一个新实例。 如果有人可以提供一些安装或修复我的配置的说明,那将很好。

谢谢!

您必须编辑neo4j-server.properties并取消注释该行:

org.neo4j.server.webserver.address=0.0.0.0

因此,数据库不仅在本地主机上侦听外部接口,而且还必须在防火墙规则中打开端口( 7474 )。

但是,请确保保护对数据库的访问:

http://neo4j.com/docs/stable/security-server.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM